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?
You need to either have Hyper-V installed or the RSAT tools for Hyper-V installed to get access to the cmdlets.
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.
Add-WindowsFeature RSAT-Hyper-V-Tools -IncludeAllSubFeature
Thanks Rob, that worked.