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
Monday, 27 February 2017
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
Saturday, 11 May 2013
Windows 8 and Wake on Lan
Wake on Lan (WOL) issues with Windows 8
Wake-on-LAN behavior in Windows 8
http://support.microsoft.com/kb/2776718
Windows 8: In Windows 8, the default shutdown behavior puts the system into hybrid shutdown (S4) and all devices are put into D3. Remote Wake-On-LAN from hybrid shutdown (S4) or classic shutdown (S5) is unsupported. Network adapters are explicitly not armed for Wake-On-LAN in both the classic shutdown (S5) and hybrid shutdown (S4) cases because users expect zero power consumption and battery drain in the shutdown state. This behavior removes the possibility of spurious wakes when explicit shutdown was requested. As a result, Wake-On-LAN is only supported from sleep (S3) or hibernate (S4) in Windows 8.
To resolve this follow the below steps
To disable hybrid shutdown (S4) in Windows 8 (not recommended), use these steps:
Wake-on-LAN behavior in Windows 8
http://support.microsoft.com/kb/2776718
Windows 8: In Windows 8, the default shutdown behavior puts the system into hybrid shutdown (S4) and all devices are put into D3. Remote Wake-On-LAN from hybrid shutdown (S4) or classic shutdown (S5) is unsupported. Network adapters are explicitly not armed for Wake-On-LAN in both the classic shutdown (S5) and hybrid shutdown (S4) cases because users expect zero power consumption and battery drain in the shutdown state. This behavior removes the possibility of spurious wakes when explicit shutdown was requested. As a result, Wake-On-LAN is only supported from sleep (S3) or hibernate (S4) in Windows 8.
To resolve this follow the below steps
To disable hybrid shutdown (S4) in Windows 8 (not recommended), use these steps:
- Open the Power Options in Control Panel
- Select “Choose what the power buttons do”
- Uncheck “Turn on fast startup (recommended)"
- Select "Save Settings"
Friday, 26 April 2013
Move DPM_SYSTEM_STATE to other location
When using Data Protection Manager to back-up the system state of your servers you will find that a folder with the name DPM_SYSTEM_STATE is created on your C:\ drive on the protected server. When disk space is insufficient to support this additional data, you can alter the location where this data is stored:
On the Protected Server:
- Edit the %system drive%\Program Files\Microsoft Data Protection Manager\DPM\Datasources\PSDataSourceConfig.xml file
- You will find the default the path is %system drive%\.
- Change it to the appropriate location and save the file.
- Modify the Protection Group
- Run Consistency Check on the System State datasource
Thursday, 25 April 2013
Tuesday, 23 April 2013
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...