WindowsCompatibility icon indicating copy to clipboard operation
WindowsCompatibility copied to clipboard

Method invocation failed because [System.Management.Automation.PSModuleInfo] does not contain a method named 'Where'.

Open ianfallon opened this issue 5 years ago • 2 comments

Running: Import-WinModule Microsoft.PowerShell.Management gives: Method invocation failed because [System.Management.Automation.PSModuleInfo] does not contain a method named 'Where'. on Powershell Core 6.2.4 (64bit, running on Windows Server 2012R2 Standard)

Name Value


PSVersion 6.2.4 PSEdition Core GitCommitId 6.2.4 OS Microsoft Windows 6.3.9600 Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0

ianfallon avatar Jan 29 '20 17:01 ianfallon

Upgrading PowerShell from 4.0 to 5.1 fixed this problem for me, despite PowerShell Core already being at 6.2.4.

mmcgarvey avatar Feb 04 '20 15:02 mmcgarvey

Upgrading PowerShell from 4.0 to 5.1 fixed this problem for me, despite PowerShell Core already being at 6.2.4.

Hi - thanks for your reply - I'll give that a go... EDIT: Arg. Looks like it's already on 5.1 :

Name Value


PSVersion 5.1.17763.771 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.17763.771 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1

ianfallon avatar Feb 04 '20 16:02 ianfallon