Join Domain Tool
Here is a utility to help users joining a computer to an Active Directory domain. It provides similiar functionality to the netdom.exe utility in that it was designed to allow you to specify an OU (organizational unit) when you're joining the domain.
In our enviroment we have a well structured list of organizational units. The workstation objects should all be placed in the OU where the user object resides. However as the default join places the computers in the "Computers" container technicians can sometimes forget to move the workstation object to it's proper destination.
Requirements:
$adDefaultContext = "DC=DOMAIN,DC=COM"$adDomainController = "dc.domain.com"
$adDomain = "DOMAIN"$adUsername = ""