Get-LocalUser no powershell falha com “O termo 'Get-LocalUser' não é reconhecido”

1

Instalei o binário powershell e a imagem do aplicativo e recebo o mesmo erro em ambos. PSVersão:

    PSVersion                      6.1.0-preview.1
    PSEdition                      Core
    GitCommitId                    v6.1.0-preview.1
    OS                             Linux 4.13.0-38-generic #43-Ubuntu 
    SMP Wed Mar 14 15:20:44 UTC 2018
    Platform                       Unix
    PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
    PSRemotingProtocolVersion      2.3
    SerializationVersion           1.1.0.1
    WSManStackVersion              3.0

Executando o cmdlet (ou qualquer cmdlet relacionado fornece o erro)

Get-LocalUser : The term 'Get-LocalUser' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

    + Get-LocalUser
    + ~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-LocalUser:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Agora eu sei que essas ferramentas estão na última versão do PowerShell ou minha leitura me levou a acreditar nisso. Eu também sei que deveria estar lá, então eu suspeito que ou eu estou perdendo algo do meu ambiente ou tenha errado de alguma forma. Qualquer ajuda seria apreciada. E sim, tentei reinstalar o Google, ler os fóruns sobre MS e até mesmo os manuais sobre PowerShell, mas não encontrar nada sobre esse erro apenas como executar os cmdlets.

    
por statmonkey 14.04.2018 / 04:10

0 respostas