You can use the NetDom command-line utility to join a computer to an Active Directory domain. This is useful when scripting or just for system administrators who prefer the command-line to GUI.
Join the Domain
netdom join %COMPUTERNAME% /Domain:virtualdojo /UserD:Administrator /PasswordD:*
Reboot Computer
shutdown -r -t 0
Note: You must set the Primary DNS server on the workstation to the IP Address of your Primary Domain Controller before you will be allowed to join the Active Directory domain.