Add computer to domain Powershell

Open a PowerShell window with administrator rights

Add-Computer -DomainName <DomainName> -Credential <DomainUser>

For example, the command would look something like this:

Add-Computer -DomainName cyber-ridge.local -Credential cyber-ridge\Administrator

After the command runs, you will need to type the user’s password and then restart the machine to complete the process. Since you have the PowerShell window open, use the Restart-Computer cmdlet to do so immediately.

Leave a Reply