Does anyone know how to change the boot order of a VM with powershell?
See
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Is there a way to set the boot order before the vm is created?
As far as I know not with the current version of the VI Toolkit.
But you can run the above function before the newly created VM is started for the first time.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
The script runs but does not seem to change anything. I looked at the BIOS setup after the script ran and did not see a change in the boot order.
Apparently the function only allows you to change the devices from which can be booted not the order.
You could limit the boot order the first time to for example only the CDRom and afterwards with a second call to only the hard disk.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
The document that I referred to above has been updated.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference