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.

How to Join a Computer Using PowerShell
Avatar

Karim Buzdar

About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. You can reach Karim on LinkedIn

One thought on “How to Join a Computer Using PowerShell

  • Avatar
    February 8, 2019 at 8:34 pm
    Permalink

    How do you include the password without prompt?

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*