Poweshell Add-Computer拒绝访问

时间:2018-08-10 05:18:12

标签: windows powershell windows-10

我有一个使用Server 2016和Windows 10 VM的实验室环境。在Windows 10计算机上,我正在使用add-computer命令通过域管理员帐户加入域(windurst.net),但访问被拒绝。我在电源外壳中拥有的命令是‘Add-Computer -DomainName“ windurst.net” -OUPath“ OU = Test,OU = Workstations,OU = Windurst,DC = Windurst,DC = Net””

我可以手动加入域,而域管理员帐户没有任何问题;但如果我使用power shell命令,则无法使用。 OU文件夹结构如下:Windurst>工作站>测试。

我知道此命令可在Windows 7上运行,但我尚未在实验室环境中对其进行测试。要构建Win 7机器并发布结果。预先感谢您提供的任何帮助。

解决方案是以管理员身份运行PowerShell enter image description here

enter image description here

1 个答案:

答案 0 :(得分:1)

请尝试以管理员身份运行powershell。 希望对您有所帮助:)