(no subject)

  • Thread starter Thread starter Hallstein
  • Start date Start date
H

Hallstein

I'm trying to use netdom.exe to join a domain. netdom.exe complains
that the account already exists, but I can join the domain manually via
the gui dialog box, even though the account (machine account) is already
existing. Is there any way to use netdom.exe to add a machine to a
domain and not have it complain about the account existing? I just want
it to use the already existing account, e.g. if I've re-installed the
computer remotely.


Here's the full command-line:
netdom MOVE ANAKONDA /DOMAIN:klient.uib.no /userd:blah /passwordd:*
/usero:administrator /passwordo:* /reboot:15
/OU:OU=Students,OU=Faculty,OU=Clients,DC=clients,DC=univ,DC=com
The account already exists.

The command failed to complete successfully.

I've also tried netdom JOIN... Is there any other way I can re-activate
an account throgh remote scripting?
 
Netdom is used to prestage computer accounts in AD, so old accounts must be
deleted prior to that. When you join your workstation to your domain from
the workstation (trough GUI), your domain account is actualy deleted and
then recreated.
You could use netdom remove to remove the account and next netdom add to
recreate the account.

--
Regards

Matjaz Ladava, MCSE (NT4 & 2000), Windows MVP
(e-mail address removed)
http://ladava.com
 
this surely has no point. the computer object would loose it's security
group memberships and stuff like that, thus this would be as annoying as
the symantec ghost "re-activation" in the domain, as it does the same
progress of deleting the object, and then re-create it. I cannot have
this..

But it seems that my real problem was that I was not running this
"remote" command from the correct computer, as my current domain does
not trust the target computers' domain.

It seems you are incorrect about the netdom command, coz when I run
netdom MOVE from within the correct domain, it does in fact work, and
computers keep its security group membership and stuff like that.
 
Yes, but you were talking about joining a domain not moving a computer
account within a domain. Move operation certainly works, but I didn't see
move command in your netdom command. Sorry.

--
Regards

Matjaz Ladava, MCSE (NT4 & 2000), Windows MVP
(e-mail address removed)
http://ladava.com
 
Back
Top