Archive for April, 2016

Change the IP address of a Windows servers with VMware PowerCLI script

April 27, 2016

VMware vSphere PowerCLI script to change the IP addresses of Windows servers. $TranscriptFile = “.\change-ip-2.txt” #Stop-Transcript Start-Transcript -Path $TranscriptFile $windowsID = “administrator” $windowsPassword = “MyPassword” Function Set-WinVMIP ($VM, $IP, $SNM, $gateway){ $nics = Get-VMGuestNetworkInterface -VM $VM -GuestUser $windowsID -GuestPassword $windowsPassword | ?{$_.ip -ne $null} Write-Host “Changing IP for $VM to $IP” -BackgroundColor DarkBlue Set-VMGuestNetworkInterface...
Read more »

Posted in Technology | No Comments »