VMware Cloud Community
jfierberg
Contributor
Contributor

Changing Boot Order with Powershell

Does anyone know how to change the boot order of a VM with powershell?

0 Kudos
6 Replies
LucD
Leadership
Leadership

See


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

jfierberg
Contributor
Contributor

Is there a way to set the boot order before the vm is created?

0 Kudos
LucD
Leadership
Leadership

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

0 Kudos
jfierberg
Contributor
Contributor

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.

0 Kudos
LucD
Leadership
Leadership

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

0 Kudos
LucD
Leadership
Leadership

The document that I referred to above has been updated.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos