Tuesday, 17 April 2018
Monday, 26 June 2017
Common email providers and server addresses / ports:
List of common email services providers together with their associated IMAP server addresses.
Google Mail
imap.gmail.com:993smtp.gmail.com:465 (SSL)
outgoing server requires authentication
alternatively
imap.gmail.com:993
smtp.gmail.com:587 (TLS)
outgoing server requires authentication
Yahoo Mail
imap.mail.yahoo.com:993smtp.mail.yahoo.com:465
outgoing server requires authentication
Tuesday, 21 March 2017
How to rename, sort and organise files, based on filename using PowerShell.
The following PowerShell script takes a list of files in a given folder, creates a new folder based on the given filename, and moves the given file, into that fold.
foreach($file in (Get-ChildItem 'x:\vol\movies\renew' | Where {(-not $_.PSIsContainer) -and (-not $_.PSIsContainer)}))
{New-Item -Path (Split-Path $file.fullname) -Name (Split-Path $file.fullname -Leaf).ToString().Replace(".avi","") -ItemType Directory
Move-Item -Path $file.fullname -Destination "$(Split-Path $file.fullname)\$((Split-Path $file.fullname -Leaf).ToString().Replace('.avi',''))"}
Friday, 10 March 2017
How to Change Network Profiles with PowerShell?
Change Network Profile Using PowerShell
The three network profiles in Windows 10 are:- Private: Computers on a private network can belong to a home group. Network discovery is turned on for private networks, which allows you to see other computers and devices on the network.
- Public: Designed to keep your computer from being visible to other computers around you and to help protect your computer from any malicious software from the Internet.
- Domain: It belongs to enterprise network. It’s controlled by network admin and can’t be selected and changed locally.
1. Open PowerShell and run it as administrator. Then type “Get-NetAdapter” and press enter to see all network adapters.
2. To fine the network adapter profiles, type “Get-NetConnectionProfile” and press enter. You can specify the network connection with “-InterfaceAlias” parameter. It show only the exact network connection information.
The network category is public, so try to change to private network with “Set-NetConnectionProfile” cmdlet.
3. To change Public network to Private network, simply type “Set-NetConnectionProfile -InterfaceAlias Ethernet -NetworkCategory Private” and press enter.
4. To see the result, type “Get-NetConnectionProfile” or specify the network adapter name with “-InterfaceAlias” parameter.
Good, the public network has been changed to private network successfully. You can do the same to change private network to public.
Monday, 27 February 2017
How to configure network connection using Powershell
Add a new IP Address
New-NetIPAddress –InterfaceAlias “Wired Ethernet Connection” –IPAddress “192.168.0.1” –PrefixLength 24 -DefaultGateway 192.168.0.254
PS C:\> New-NetIPAddress –InterfaceIndex 12 –IPAddress 192.168.0.1
PS C:\> Remove-NetIPAddress –IPAddress 192.168.0.1
PS C:\> Get-NetIPAddress –IPAddress 192.168.0.1 | Remove-NetIPAddress
PS C:\> Remove-NetIPAddress –PrefixOrigin Manual
Add a new IP Address
New-NetIPAddress –InterfaceAlias “Wired Ethernet Connection” –IPAddress “192.168.0.1” –PrefixLength 24 -DefaultGateway 192.168.0.254
PS C:\> New-NetIPAddress –InterfaceIndex 12 –IPAddress 192.168.0.1
PS C:\> Remove-NetIPAddress –IPAddress 192.168.0.1
PS C:\> Get-NetIPAddress –IPAddress 192.168.0.1 | Remove-NetIPAddress
PS C:\> Remove-NetIPAddress –PrefixOrigin Manual
Thursday, 10 September 2015
Clone Vmware Guest (Template)
Use the following syntax to clone a snapshot of a VMware guest:
vmkfstools -i source_path destination_path -d disk_format -a adapter_type
Example Syntax
vmkfstools -i /vmfs/volumes/local_ssd_vmfs5_disk0/GoldWin10Ent64/GoldWin10Ent64-000001.vmdk /vmfs/volumes/nfs_ssd_vmfs5_disk1/Win10ws01.domain.com/Win10ws01.domain.com.vmdk -d thin
vmkfstools -i source_path destination_path -d disk_format -a adapter_type
Example Syntax
vmkfstools -i /vmfs/volumes/local_ssd_vmfs5_disk0/GoldWin10Ent64/GoldWin10Ent64-000001.vmdk /vmfs/volumes/nfs_ssd_vmfs5_disk1/Win10ws01.domain.com/Win10ws01.domain.com.vmdk -d thin
Subscribe to:
Posts (Atom)
Fixing Java KVM client error with 'Connection Failed'
Java 8u171 disables the use of the 3DES_EDE_CBC cipher. Solution is to reconfigure Java by editing and removing 3DES_EDE_CBC from the follow...
-
Windows 8 News http://windows.microsoft.com/en-US/windows-8/preview Windows 8 Blog | Building Windows 8 http://blogs.msdn.com/b8 W...
-
http://www.lostpassword.com/
-
Microsoft has assembled a list of “how do I” videos for customers to learn how to accomplish specific tasks with Microsoft products an...


