I need to query ALL VMs in vCenter to determine what their existing boot order is. However, all I can find is how to query the boot order once you have added a new property to VMware.Vim.VirtualMachineConfigSpec called BootOrder. (IE, While this is very helpful for modifying the BIOS boot order of VMs, if you query VMs that have NOT been modified, this value is empty. Is there another way to find the boot order/boot sequence or even just what the boot device is set to? I’ve been scouring the communities and the Internet at large and keep circling back to the example below. Please tell me there’s another way! ) .
Example of unmodified boot order on VM:
PS C:\> (Get-VM NICTEST).Extensiondata.Config.BootOptions
BootDelay : 0
EnterBIOSSetup : False
BootRetryEnabled : False
BootRetryDelay : 10000
BootOrder :
DynamicType :
DynamicProperty :
Example of modified boot order on VM:
PS C:\> (Get-VM PXETEST_JT).Extensiondata.Config.BootOptions
BootDelay : 10000
EnterBIOSSetup : False
BootRetryEnabled : False
BootRetryDelay : 10000
BootOrder : {4000, 2000, VMware.Vim.VirtualMachineBootOptionsBootableCdromDevice}
DynamicType :
DynamicProperty :
Any help is greatly appreciated!