New-VIProperty -Name GuestFullName -ObjectType VirtualMachine -ValueFromExtensionProperty 'Guest.GuestFullName' -Force
Now I can do a Get-VM | Select Name, GuestFullName and I get an overview of which machines have which OS.
I'm sure there are other ways of getting this too, but this was what I was looking for.
P.S., if I do Get-VM | Select Name,Guest , I do get the OS, but it is prepended with the hostname.
P.S., if I do Get-VM | Select Name,Guest , I do get the OS, but it is prepended with the hostname.
No comments:
Post a Comment