Virtual PC Guy's Blog

-- Ben Armstrong, Virtualization Program Manager

Talking about core virtualization at Microsoft (Hyper-V, Virtual PC and Virtual Server).

Welcome to MSDN Blogs Sign in | Join | Help

Enabling PowerShell on Hyper-V Server 2008 R2

One of the new capabilities of Microsoft Hyper-V Server 2008 R2 is that you can now enable PowerShell on it.  This is really helpful for when you want to perform basic tasks locally instead of having to use the remote user interface.  In order to do this all you need to do is to run the following command:

start /w ocsetup MicrosoftWindowsPowerShell

After that you can start a PowerShell command window by running:

start C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe

And you can see the results here:

powershell

Cheers,
Ben

Published Tuesday, February 10, 2009 6:58 PM by Virtual PC Guy

Comments

# re: Enabling PowerShell on Hyper-V Server 2008 R2

Are the cmdlets from the VMM snapin also available?

thanks,

Marc

Wednesday, February 11, 2009 9:42 AM by Marc Sherman

# HyperV on HyperV?

I am confused from your screenshot ... how can you run HyperV Server in a HyperV VM?

Wednesday, February 11, 2009 9:57 AM by JamesR

# re: Enabling PowerShell on Hyper-V Server 2008 R2

Marc Sherman -

Not "Out of box"

JamesR -

Whoops, I usually trim out the window frame when I do this so you cannot tell.  You can install Hyper-V on Hyper-V - but the hypervisor won't launch and you won't be able to run any virtual machines.  It is quite handy when you are wanting to quickly test management stuff

Cheers,

Ben

Wednesday, February 11, 2009 1:12 PM by Virtual PC Guy
New Comments to this post are disabled
 
Page view tracker