In my never ending quest to learn a new thing everyday, I decided I needed to spend more time with Powershell. After a recent Hyper-V issue it seems it would be just the thing to help. So imagine my surprise when nothing I did could get the Hyper-V PS commands to work!
It turns out that because my server had been upgraded to Server 2012 from 2008R2, when the Hyper-V role is installed, the Hyper-V PS module isn’t.
I found the following blog post that gave me the answer I needed
So in short, open Powershell and run
install-windowsfeature -name hyper-v -IncludeManagementTools
or through the GUI:
- Open the “Add Roles and Features Wizard”
- Click Next through to add Features
- Select “Remote Server Administration Tools | Role Administration Tools | Hyper-V Management Tools | Hyper-V Module for Windows PowerShell”