Enabling PowerShell on Hyper-V Server 2008 R2

Rate This
  • Comments 4

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:



Leave a Comment
  • Please add 7 and 5 and type the answer here:
  • Post
  • Are the cmdlets from the VMM snapin also available?



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

  • 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



  • I had to install the .NET framework before I could install powershell :

    start /w ocsetup NetFx2-ServerCore

Page 1 of 1 (4 items)

Enabling PowerShell on Hyper-V Server 2008 R2