Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 34890

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

$
0
0

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

Hey, Scripting Guy! Question How can I change the startup order of my virtual machine on my laptop running Windows 8?

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


Viewing all articles
Browse latest Browse all 34890

Trending Articles