Rename computer join it to the domain and put it in a defined ou this script can be used to do the following three things. Put the computer account into the specified domain. Some times we may need to do this from command line or from a batch file without any user interaction.