Hi
I need a get-view script to list guest VM OS so I can filter on the script W2K3/8/12 etc...
Thanks, Maelito
Hi,
hope this helps...
Get-View -ViewType VirtualMachine | Where { $_.Guest.GuestFullname} | Sort Name |Select-Object Name, @{N=”SelectedOS”;E={$_.Guest.GuestFullName}}, @{N=”InstalledOS”;E={$_.Summary.Config.GuestFullName}} | Out-GridView
You have two options to consider ...
A) Query the VM configuration to see what OS has been selected from the drop down (assuming this is 100% correct)
B) Query the guest OS to verify the version.
Both options can be done with PowerShell, and if you don't want to write the script yourself simply download RVTools and export all the data you need - http://www.robware.net/
Cheers,
Jon