Hyper-V cmdlets in Windows Server 2012 R2

This topic contains 4 replies, has 4 voices, and was last updated by Profile photo of Ken Hess Ken Hess 2 years, 4 months ago.

  • Author
    Posts
  • #17066
    Profile photo of Ken Hess
    Ken Hess
    Participant

    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
    Profile photo of Richard Siddaway
    Richard Siddaway
    Moderator

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

  • #17070
    Profile photo of Don Jones
    Don Jones
    Keymaster

    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
    Profile photo of Rob Simmers
    Rob Simmers
    Participant

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

  • #17093
    Profile photo of Ken Hess
    Ken Hess
    Participant

    Thanks Rob, that worked.

You must be logged in to reply to this topic.