Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

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

Open
ianfallon opened this issue Jan 29, 2020 · 2 comments

Comments

@ianfallon
Copy link

ianfallon commented Jan 29, 2020

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
Copy link

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

@ianfallon
Copy link
Author

ianfallon commented Feb 4, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants