PowerShell / WindowsCompatibility

Module that allows Windows PowerShell Modules to be used from PSCore6
Other
137 stars 33 forks source link

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

Open ianfallon opened 4 years ago

ianfallon commented 4 years ago

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

mmcgarvey commented 4 years ago

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

ianfallon commented 4 years ago

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