I have a lab environment using Server 2016 and Windows 10 VMs. On the windows 10 machine, I’m using the Add-Computer
command to join a domain (windurst.net) using the domain administrator account but get access denied. The command I have in PowerShell is
Add-Computer -DomainName "windurst.net" -OUPath "OU=Test,OU=Workstations,OU=Windurst,DC=Windurst,DC=Net"
I can join the domain manually with no issues with the domain administrator account, but it does not work if I’m using the PowerShell command. The OU folder structure is as follows: Windurst > Workstations > Test
.
I know this command works on Windows 7, but I haven’t tested it in my lab environment as yet. Going to build a Win 7 machine and post the results. Thanks in advance for any help you can give.
Please try running powershell as admin. Hope it helps :)
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments