Eric Sloof just pointed us out to the Blog on the VMware website about the upcoming Powershell Toolkit Beta. I have been playing around with this toolkit for a while but had a hard time figuring out how to actually make useful scripts. The PDF that was also released has some cool examples of useful scripts for instance these:
Change the number of virtual CPUs configured for “Email VM 1” from 1 to 2:
get-vm “Email VM 1 User N” | `
set-vm –numcpu 2Read the last 10 lines of the hostd log file from ESX1:
(get-log –host (get-vmhost esx1) `
hostd).Entries[-10..-1]Identify which VMs have network adapters that are not automatically connected:
get-vm | where { `
$_ | get-networkadapter | where { `
$_.ConnectionState.StartConnected -eq 0 `
} `
}
Cool stuff!
markus g. says
Hi Duncan,
on the ftp Site you wrote here I found the Powershell beta.
Just klick the last link in my German Blog and you can get the Powershell Servlets now.