The term 'Get-ADUser' is not recognized as the name of a cmdlet

前端 未结 6 1879
走了就别回头了
走了就别回头了 2020-12-07 12:58

I have used the following query to list the users in a windows 2008 server, but failed and got the below error.

$server=\'client-pc-1\';$pwd= convertto-secur         


        
6条回答
  •  一向
    一向 (楼主)
    2020-12-07 13:27

    For the particular case of Windows 10 October 2018 Update or later activedirectory module is not available unless the optional feature RSAT: Active Directory Domain Services and Lightweight Directory Services Tools is installed (instructions here + uncollapse install instructions).

    Reopen Windows Powershell and import-module activedirectory will work as expected.

提交回复
热议问题