Ashley004
Contributor
Contributor

New-vm -GuestID

Jump to solution

Hello All

Is there a way to get a listing of all the GuestId's available using PowerCLi  ?

Regards

Ashley

0 Kudos
1 Solution

Accepted Solutions
mattboren
Expert
Expert

Hello, Ashley004-

Yes, you can use the GetNames()static method of the System.Enum .NET class to get the names of this enumeration.  Like:

[System.Enum]::GetNames([VMware.Vim.VirtualMachineGuestOsIdentifier])

How does that do?

View solution in original post

0 Kudos
2 Replies
mattboren
Expert
Expert

Hello, Ashley004-

Yes, you can use the GetNames()static method of the System.Enum .NET class to get the names of this enumeration.  Like:

[System.Enum]::GetNames([VMware.Vim.VirtualMachineGuestOsIdentifier])

How does that do?

0 Kudos
Ashley004
Contributor
Contributor

That is perfect thank you for the help !

0 Kudos