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

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…

Find VMware Guests with Raw Physical Disks

VMware vSphere PowerCLI script to find all guests that have RDMs or raw physical disks. $Servers=”vcenter1″ Connect-VIServer $Servers $vms = get-cluster | get-vm Get-VM | Get-HardDisk -DiskType “RawPhysical”,”RawVirtual” | Select Parent,Name,DiskType,ScsiCanonicalName,DeviceName | out-gridview -PassThru | Export-Csv -Path .\vm-with-rdm.csv