Trouble Using NETDOM to add workstation to a specific OU when accoutn exists elsewhere

G

Glenn

I have found a really wierd problem using netdom with the join switch
to add a machine to a domain into a specific organisational unit.

If a computer account with the same name as the one i am about to join
exists in the OU i am about to join it to then netdom happily deletes
the old account and creates a new one , successfully joining the
domain.

However if a computer account exists in an sub OU of this OU ( which
the account i am using has EXCATLY the same rights over) netdom cannot
remove the computer object and stops

Has anyone seen this before and can u suggest any ways round . I have
briefly tried using adsi to remove the object from the sub ou first but
if i don't hit the same dc with the delete as the netdom command used
for the join the process fails again and i have to wait 5 mins for
replication which screws up my automated domain join process.

Any help would be appreciated

Thanks
 
R

Ryan Hanisco

Glenn,

This appears to be working as intended. You will either need to wait the
replication time or change your coding to accommodate this. I would suggest
staying with the ADSI route, but you'll still have to work through the
binding problem you mentioned.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Correct OU Path when using netdom join 4
join PC to domain 2
Netdom Authentication?? 1
netdom and multiple ou's 5
Netdom and nested OUs 1
(no subject) 3
Create workstation account in OU 2
NETDOM access denied 0

Top