Last Updated on February 20, 2017 by admin
Sometimes you may have to join a computer to a Windows Domain in a single step orwnat to automate this in s script or you don't have any GUI available such as the case with Windows Core Server.
Here are the Step-by-Step Instructions
Step 1: Open PowerShell with administrative privileges.
Step 2: Type in the following command then press enter on your keyboard. Make sure to change the name of your domain and username.
add-computer –domainname ad.contoso.com -Credential AD\adminuser -restart –force
Step 3: Provide the password for a domain account that has sufficient privileges to join the computer with a domain.
The PC will restart then and once it has been rebooted, the user can login with his/her domain credentials.