none
Scripts are not recognized by my computer RRS feed

  • Question

  • Hi everyone,
    I got a script to get the membership of local groups in a server and I'm using as this:

    Get-LocalGroupMembership -Computername server1 -Group Administrators

    however, when I try to execute it I’m getting the following error:

    The term ‘Get-LocalGroupMembership’ is not recognized as the name of a cmdlet, function, script file, or operable progr
    am. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

    Suggestion [3,General]: The command Get-LocalGroupMembership was not found, but does exist in the current location. Wind
    ows PowerShell doesn’t load commands from the current location by default. If you trust this command, instead type “.\Get-LocalGroupMembership”. See “get-help about_Command_Precedence” for more details.

    Previously I tried to run the script as .\Get-LocalGroupMembership.ps1 but is not generating anything.

    Could someone assist me how to correct this?

    Thanks in advance,

    Gerardo.

    Thursday, March 26, 2015 1:27 PM

Answers

All replies