Discussion Locked

Adding a Computer to a Domain using NT C

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Is there any possible way that you can make a script where you can add a computer on to a domain??? If so, what commands can I use??

thanks!!!

Mohammed Adenwala
IT Intern
iExplore, Inc.
600 West Fulton St., Suite 301
Chicago, IL 60661-1100
(312) 224-0246
www.iexplore.com

6 replies

by mmohammed

Yes you can add computer to domain from dommand prompt. I don't know why you need a script for this. Anyway....
Assume MYDOMAIN is the name of the domain and
MYCOMPUTER is the name of the workstation or stand-alone server that is joining
the domain.

NETDOM lets you join a domain from the command line. This can apply to Windows NT
workstations and standalone servers.

If you are the administrator of the domain
------------------------------------------

If you have administrative access to the primary domain controller (PDC) (such as
through an user account member of the Local Administrators or Domain
Administrators groups,) NETDOM automatically creates the computer account if
necessary.

You may run the following command (in a single line):

NETDOM /Domain:MYDOMAIN /user:adminuser /password:apassword MEMBER
MYCOMPUTER /JOINDOMAIN

The command line above may be run on any computer as soon as you have
administrative access to the computer MYCOMPUTER. If you are already

by soren.albeck

Two ways. If you're on a DC, simply use "NET COMPUTER \\ /ADD"
Or use NETDOM from the resource-kit:
"NETDOM ADD /Domain:"
If you're not logged in as domain admin, add "/UserD: /PasswordD:"
Putan * as passwd if you want to be prompted. If you're Win2K you can add /OU: to NETDOM

This discussion is closed to new replies.