quick version - I wrote a bunch of monitoring scripts that run on our VMM server, all start with "Import-Module FailoverClusters" on the first line.
The server was in-place upgraded to Server 2016, and now all the scripts fail with:
- get-vm : The Hyper-V module used in this Windows PowerShell session cannot be used for remote management of the server 'HVSQLTCUCS04'. Load a compatible version of the Hyper-V module
Some internet articles suggest I should be able to do this:
- Import-Module FailoverClusters -RequiredVersion 1.1
But the response is not ideal:
- Import-Module : The specified module 'FailoverClusters' with version '1.1' was not loaded because no valid module file was found in any module directory.
also this:
- Get-Module -Name FailoverClusters -listavailable
Directory: C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Manifest 2.0.0.0 FailoverClusters {Add-ClusterCheckpoint, Add-ClusterDisk, Add-ClusterFileSe...
I tried "Find-Module" and things like it, they all get an internet error:
- WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''.
WARNING: Unable to download the list of available providers. Check your internet connection.
PackageManagement\Install-PackageProvider : No match was found for the specified search criteria for the provider 'NuGet'. The package provider requires 'PackageManagement' and 'Provider' tags. Please
check if the specified package has the tags.
So, How can I get a 2012 r2 compatible version or the module "FailoverClusters" loaded on my 2016 server, preferably manually copy and not automatic internet download (which may be blocked by policy or firewall)
Thanks in advance!