Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add computer names to domain from command line?

Status
Not open for further replies.

dan

MIS
Oct 7, 1998
298
US
Is there a command line utility that would allow adding a computer name to the NT 4 domain? We have over 1000 students and I don't want to add them all manually.

Thanks in advance for any suggestions.

Dan
 
I believe you can use the net computer \\computername /add command

OR


The NT Resource Kit Supplement 2 ships a new utility called NETDOM.EXE which can be used to not only join domains, but create computer account and trust relationships.

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

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

netdom /domain:savilltech /user:savillj /password:nottelling member <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 add you an account first using either server manager or using NETDOM.EXE

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

Once the account has been add the normal user could join the domain using the first command shown


HTH

Aslam
 
I an assuming:
savilltech=NT Domain name
savillj=user with admin rights
nottelling= password for above account

Is this correct?

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top