June 3rd, 2013

PowerTip: Use PowerShell to Check Virtual Machine Boot Order

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to check the boot order on a virtual machine.

Hey, Scripting Guy! Question How do I check the boot order on a virtual machine running on Hyper-V?

Hey, Scripting Guy! Answer Use the Get-VMBios cmdlet and check the StartupOrder property.

Get-VMBios -vmname “Virtual Machine Name” | Select-object -expandproperty StartupOrder

Adding the ComputerName parameter allows you to check the settings on a remote Hyper-V Server.

Get-VMBios -vmname “Virtual Machine Name” -computername ‘Hyper-V-Server’ |
Select-Object -expandproperty StartupOrder

 

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback