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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Join Domain Automatically

Status
Not open for further replies.

ronnetp

Programmer
Apr 8, 2002
71
I will need to Joing 60 computers to the domain, is there a way of doing this automatically, like with a script?

Thanks
 
You can use netdom.exe syntax is as follows:

C:\>netdom help join

NETDOM JOIN <computer>/Domain:<domain> [/OU:<ou path>] [/UserD:<user>]

[/PasswordD:[<password> | *]]

[UserO:<user>] [/PasswordO:[<password> | *]]

[/reboot[:<Time in seconds>]]
When you run this command, the following information is displayed:
NETDOM JOIN Joins a
workstation or member server to the domain. Where:


<computer> is the name of the workstation or member server to be joined

/Domain Specifies the domain which the machine should join

/UserD User account used to make the connection with the domain

specified by the /Domain argument

/PasswordD Password of the user account specified by /UserD.
Use * to prompt for the password

/UserO User account used to make the connection with the machine to be joined

/PasswordO Password of the user account specified by /UserO.
Use * to prompt for the password

/OU Organizational unit under which to create the machine account.
This must be a fully qualified RFC 1779 DN for the OU.
If not specified, the account will be created under the default organization
unit for machine objects for that domain.

/REBoot Specifies that the machine should be shutdown and automatically rebooted after the Join has completed.
The number of seconds before automatic shutdown can also be provided. Default is 20 seconds
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top