Joining a computer to a domain

The GUI way

my pc properties

Right click on My Computer or This PC and click properties

computerName

Select the Computer Name tab and Click change

domainName

Click on the Domain radio button and enter either the domain name press Ok

Enter your domain administrative credentials and press ok to reboot.

 

Using PowerShell

Add-Computer -DomainName Domain01 -Restart

Using Netdom

netdom join %computername% /domain:domainname.com /userd:Administrator /passwordd: /reboot:0