The NetDom command can also perform a variety of domain account and security tasks
in Command Prompt. In Lesson 1, you learned to use NetDom to join a computer to the
domain. You can also use it to create a computer account by typing the following command:
netdom add ComputerName /domain:DomainName [/ou:OUDN] [/UserD:User /PasswordD:Password]
This command creates the computer account for ComputerName in the domain indicated
by the domain parameter, using the credentials specified by UserD and PasswordD. The /ou parameter causes the object to be created in the OU specified by the OUDN distinguished name following the parameter. If no OUDN is supplied, the computer account is created in the default computer container. The user credentials must, of course, have permissions to create computer objects.