September 2003
Intermediate to advanced
624 pages
15h 49m
English
You want to join a computer to a domain after the computer object has already been created in Active Directory.
Log onto the computer you want to join and open the Control Panel.
Open the System applet.
Click the Computer Name tab.
Click the Change button.
Under Member of, select Domain.
Enter the domain you want to join and click OK.
You may be prompted to enter credentials that have permission to join the computer.
Reboot the computer.
Note that the tabs in the System applet vary between Windows 2000, Windows XP, and Windows Server 2003.
> netdom join <ComputerName> /Domain <DomainName> /UserD <DomainUserUPN>[RETURN] /PasswordD * /UserO <ComputerAdminUser> /PasswordO * /Reboot
' This code joins a computer to a domain. ' ------ SCRIPT CONFIGURATION ------ strComputer = "<ComputerName>" ' e.g. joe-xp strDomain = "<DomainName>" ' e.g. rallencorp.com strDomainUser = "<DomainUserUPN>" ' e.g. administrator@rallencorp.com strDomainPasswd = "<DomainUserPasswd>" strLocalUser = "<ComputerAdminUser>" ' e.g. administrator strLocalPasswd = "<ComputerUserPasswd>" ' ------ END CONFIGURATION --------- '######################## ' Constants '######################## Const JOIN_DOMAIN = 1 Const ACCT_CREATE = 2 Const ACCT_DELETE = 4 Const WIN9X_UPGRADE = 16 Const DOMAIN_JOIN_IF_JOINED = 32 Const JOIN_UNSECURE = 64 Const MACHINE_PASSWORD_PASSED = 128 Const DEFERRED_SPN_SET = 256 Const ...