We all know how to join a pc to a domain, a few clicks here and there and a user and password. If you want to script joining your windows 7 or windows 8 PC to a domain then this can be done with the netdom command via command line. As follows.
NETDOM /Domain:techieshelp.com /user:administrator/password:allenspassword MEMBER allenscomputer /JOINDOMAIN
Domain:ENTER YOUR DOMAIN
User:A USER THAT ACCESS TO THE PDC
Password:ENTER YOUR PASSWORD
Member:ENTER THE NAME OF YOUR PC