How can I join a domain from the command line? (2024)

A. A. The NT Resource Kit Supplement 2 ships a newutility called NETDOM.EXE which can be used to not onlyjoin domains, but create computer account and trust relationships.

To join a domain there are 2 paths, the first is to just add thecomputer to the domain and create the computer account simultaneouslywhich is OK if you are logged on as a domain administrator, if you are nota domain administrator the account needs to be added in advance and thenyou join the domain.

If you are logged on as a domain administrator then enter the commandbelow to create the account and join the domain

netdom /domain:savilltech /user:savillj /password:nottellingmember <computer name> /joindomain
where <computer name> is the name of your machine, e.g.johnstation

If you are not an administrator the domain admin people will have to addyou an account first using either server manager or using NETDOM.EXE

netdom /domain:savilltech /user:savillj /password:nettellingmember <computer name> /add

Once the account has been add the normal user could join the domainusing the first command shown.

See also,"How can I delete a registry value/key from the command line?"

How can I join a domain from the command line? (2024)
Top Articles
Latest Posts
Article information

Author: Madonna Wisozk

Last Updated:

Views: 6051

Rating: 4.8 / 5 (68 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Madonna Wisozk

Birthday: 2001-02-23

Address: 656 Gerhold Summit, Sidneyberg, FL 78179-2512

Phone: +6742282696652

Job: Customer Banking Liaison

Hobby: Flower arranging, Yo-yoing, Tai chi, Rowing, Macrame, Urban exploration, Knife making

Introduction: My name is Madonna Wisozk, I am a attractive, healthy, thoughtful, faithful, open, vivacious, zany person who loves writing and wants to share my knowledge and understanding with you.