active directory

I have worked with active directory, and made OU's and things like that, however, I know I could learn A LOT more about it. One thing that I noticed and haven't figured out is, when I am joining a computer to the domain, if the computer is already setup on domain1 and I have to join it to domain2, if I just go to system properties on the computer and under the computer name tab, if I click the "change" button, and change the domain name, after I put in my credentials it gives an error stating
"The join operations was not successful. this could be because an existing computer account having name "computer1" was previously created using a different computer name, or contact your administrator to remove any stale conflicting account. The error was: Access is denied. "
So if I go into Active Directory Users and Computers, and add the computer, then change the domain, it joins the domain without a problem.
When I build a new computer ( we use SCCM ) I don't create a computer account in Active Directory. Through SCCM, I just name the computer and it gets joined to the domain through the imaging process.
So I don't understand why I have to manually add the computer in the first scenario?
LVL 1
JeffBeallAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
That is because of part of your task sequence in SCCM it does the domain join and the computername doesn't exist.  In the current scenario AD already has a computer name that is the same and it is flagging it as a potential error. In reality you should be removing it from domain1 and then joining it to domain2 otherwise it will be in both domains which is probably not what you want.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JeffBeallAuthor Commented:
thank you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.