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?