Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 182126

How to get all VirtualMachineGuestOsIdentifier over PowerCLI

$
0
0

Hi

 

I would like to get a list of all VirtualMachineGuestOsIdentifier within PowerCLI.

Smth like this:

https://www.vmware.com/support/developer/converter-sdk/conv61_apireference/vim.vm.GuestOsDescriptor.GuestOsIdentifier.ht…

 

I tried this:

(get-vm | get-vmguest).GuestID | sort | unique

 

This Shows all IDs but only from existing VMs, but i want all of it :-)

 

I am trying to get the list over the Type "GuestID", but I am not able to do it.

With this line i'm getting the TypeName:

Get-Vm <servername> | get-vmguest | get-member guestid

=> TypeName: VMware.VimAutomation.ViCore.Impl.V1.VM.Guest.VMGuestImpl

 

Now, I have no idea how to go further from this.

 

Can you please help me? Or is there a better way?

 

Thank you very much


Viewing all articles
Browse latest Browse all 182126

Trending Articles