Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I hear that you can create the computer account in AD before you join the computer to the domain so that the computer immediately gets the right groups and such. I created the account by running something like:

New-ADComputer -Name PCXXX -Path "OU=somepath,DC=mydomain.com"

However, when I try to join a new PC to the domain and set the name, the naming parts fails and says the machine account already exists. What am I doing wrong?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Are you saying that you:

  1. prestaged a computer object, COMPUTER1,
  2. joined a workgroup computer named COMPUTER2 to the domain,
  3. attempted to rename this computer to COMPUTER1

If so, the reason it is failing is due to the fact that when you rename a domain-joined computer, it renames the Active Directory object to the new name as well. Since an object with this name already exists (the prestaged object), this will fail. Either change the name of the computer before joining or change the name that you use top prestage.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.