Ok, so I wasn't sitting at the computer on Friday night when this hit. But here it is Saturday night and I'm stuck at the terminal. :) This is good news!
Carter Shanklin announced the beta release of VMware's VI ToolKit for Windows 1.0. Go grab it and give it a try. Carter wrote the following on the VI PowerShell Blog.
Some of the cool things you might want to try for yourself:
- Snapshot all of your virtual machines at once with a script like:
Get-VM | % { New-Snapshot -VM $_ -Name ($_.name + "-current") } |
- Automate long-running tasks like cloning using a script like:
foreach ($i in 1..30) { Get-Template "My Template" |
New-VM -Name "Clone $i" } |
- Disconnect connected CD-ROM drives (to enable VMware VMotion, for example) using a script like:
Get-VM | Get-CDDrive |
? { $_.ConnectionState.Connected -eq "true" } |
Set-CDDrive -Connected:$false -Confirm:$false |
In total there are 102 PowerShell cmdlets in the Beta that cover all aspects of Virtual Infrastructure management. The most important thing is that you can now easily write scripts, tailor made to your problems, that save you time and frustration, whether that means saving you 10 clicks or 100.
Once you've had a chance to kick the proverbial tires, don't forget to visit our Community Page to give your feedback or to talk with other Beta testers.