Hyper-V cmdlets in Windows Server 2012 R2

This topic contains 4 replies, has 4 voices, and was last updated by  Ken Hess 3 years, 11 months ago.

  • Author
  • #17066

    Ken Hess

    I downloaded the Codeplex ones but I have to reinstall the module every time I open a new PS window. Are there no native Hyper-V cmdlets in WS2K12 R2? If there is, how do you enable/load them?

  • #17067

    Richard Siddaway

    You need to either have Hyper-V installed or the RSAT tools for Hyper-V installed to get access to the cmdlets.

  • #17070

    Don Jones

    You can also use a profile (help about_profile*) to automatically load a desired module into memory each time you open a new shell window.

    That said, you *should* have modules installed in one of the paths where PowerShell looks for them. That way, you don't have to load them (it isn't "installing," it's just loading into memory). In v4, "Program Files\WindowsPowerShell\Modules" is one of the correct paths.

    But, Richard is correct – you'll want to use the native ones. They only "auto load," though, because they're put into one of the correct paths. They're not special just because they're native.

  • #17072

    Rob Simmers

    Add-WindowsFeature RSAT-Hyper-V-Tools -IncludeAllSubFeature

  • #17093

    Ken Hess

    Thanks Rob, that worked.

You must be logged in to reply to this topic.