Quantcast
Viewing all articles
Browse latest Browse all 36188

PowerTip: Change the Startup of Your Hyper-V Virtual Machine

Summary: Learn how to use Windows PowerShell 3.0 on Windows 8 to change the startup order of your Hyper-V virtual machine.

Image may be NSFW.
Clik here to view.
Hey, Scripting Guy! Question
 How can I change the startup order of my virtual machine on my laptop running Windows 8?

Image may be NSFW.
Clik here to view.
Hey, Scripting Guy! Answer
 You can verify the startup order of your virtual machine by piping the results of Get-VM to the Get-VMBios cmdlet, as shown here.

08:11 C:\> get-vm c2 | Get-VMBios

VMName StartupOrder                            NumLockEnabled

------ ------------                            --------------

C2     {CD, IDE, LegacyNetworkAdapter, Floppy} False

To change the startup order, pipe the results to the Set-VMBios and supply the order as an array. The following illustrates the technique.

08:12 C:\> get-vm c2 |

  Set-VMBios -StartupOrder @("IDE","LegacyNetworkAdapter","CD","Floppy")

08:13 C:\> get-vm c2 | Get-VMBios

 

VMName StartupOrder                            NumLockEnabled

------ ------------                            --------------

C2     {IDE, LegacyNetworkAdapter, CD, Floppy} False

Image may be NSFW.
Clik here to view.

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 36188

Trending Articles