Skip to content
This repository was archived by the owner on Jun 16, 2021. It is now read-only.
This repository was 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

Description

@ianfallon

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

Activity

  1. mmcgarvey commented on Feb 4, 2020

    @mmcgarvey

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

  2. ianfallon commented on Feb 4, 2020

    @ianfallon
    Author

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions