how to join computer to domain through powershell
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have just done a fresh installation of windows 7 professional, and I would like to join my pc to domain through powershell but getting some error here is the code which I am using Add-Computer -ComputerName HMD-PC002 -DomainName mydomain -Credential mydomain\Administrator Add-Computer : Computer 'HMD-PC002' failed to join domain 'mydomain' from its current workgroup 'WORKGROUP' with following error message: Unknown error (0xa8b). At C:\Users\HMDPC002\Desktop\add-pc_to_Domain.ps1:8 char:1 + Add-Computer -ComputerName HMD-PC002 -DomainName