User disjoin workstation from domain, attempt to rejoin and get "account already exists"

M

Marlon Brown

I have here this User1tech here that complains that when she disjoins a
workstation from the domain, goes there a day or two later and attempt to
rejoin SameComputerName to the domain, a message "account already exists" is
displayed and joining operation is unsucessful.

Then if User1tech tries to add the computer account using a different name,
the joining operation works accordingly, what tells me permissions wise that
should be fine.

What's wrong ?
Win2000ADSP4
 
O

Oli Restorick [MVP]

When the user disjoined the machine from the domain, she would have got an
warning message saying that the machine account could not be deleted. This
is because she doesn't have permission to delete computer objects from the
appropriate container.

When she tries to rejoin, there's already a machine account in Active
Directory with the computer's name.

You're probably also finding that regular users by default have the ability
to add up to 10 machines to a domain. If you need these users to be able to
add and remove machine accounts freely from workstations, use the delegation
of control wizard to delegate the creation and deletion of machine accounts
on the "computers" container. I recommend that you create a group and
delegate permissions to the group rather than delegating to users directly.

Hope this helps

Oli
 
M

Marlon Brown

In this case the user does have the appropriate rights to join unlimited
number of machines; that's why I mentioned that 'the user is able to join
the machine account' using a different name. Upon disjoining, the user got
no message saying that machine account could not be deleted either.
 
O

Oli Restorick [MVP]

When you say "using a different name", do you mean a different computer name
or a different user name?

So, can you confirm that you're either using a domain admin account (bad
idea), or you've already delegated the right to create and delete computer
accounts. If not, how did you give the user the right to join an unlimited
number of machines?

Oli
 
M

Marlon Brown

I created a JoinWorkstations group and configured the permissions in
'security' tab, on the respective "computer" container OU. I just make the
domain user a member of that joinworkstations group and here we go.

I will copy this tech account and try to reproduce the problem to see what's
going.
 
O

Oli Restorick [MVP]

Right. That should work, so I'm also having difficulty working out what's
going on. I wonder if the deletion has not replicated to all domain
controllers before the join takes place and a different domain controller is
being used for the domain join. Just a thought.

If I have any more thoughts, I'll let you know.

Oli
 
G

Gautam Anand

Yup, like Oli pointed out, this looks like a replication issue.

1.How many DCs do you have
2.Go to each DC individually create a unique user and see if all the
users created replicate to all DCs

3. This doesnt appear to be an issue with perms , rights since the
user is able to add a new machine (new name) to the domain.

Cheers,

--
+----------------------------------+
I reply at the news groups only on weekends. If you need to contact
me, Im available on MSN Messenger at heygautam at hotmail
Thanks
Gautam Anand
+----------------------------------+
| Right. That should work, so I'm also having difficulty working out
what's
| going on. I wonder if the deletion has not replicated to all domain
| controllers before the join takes place and a different domain
controller is
| being used for the domain join. Just a thought.
|
| If I have any more thoughts, I'll let you know.
|
| Oli
|
|
| | >I created a JoinWorkstations group and configured the permissions
in
| > 'security' tab, on the respective "computer" container OU. I just
make the
| > domain user a member of that joinworkstations group and here we
go.
| >
| > I will copy this tech account and try to reproduce the problem to
see
| > what's
| > going.
| >
| >
| > | >> When you say "using a different name", do you mean a different
computer
| > name
| >> or a different user name?
| >>
| >> So, can you confirm that you're either using a domain admin
account (bad
| >> idea), or you've already delegated the right to create and delete
| >> computer
| >> accounts. If not, how did you give the user the right to join an
| > unlimited
| >> number of machines?
| >>
| >> Oli
| >>
| >>
| >> | >> > In this case the user does have the appropriate rights to join
| >> > unlimited
| >> > number of machines; that's why I mentioned that 'the user is
able to
| > join
| >> > the machine account' using a different name. Upon disjoining,
the user
| > got
| >> > no message saying that machine account could not be deleted
either.
| >> >
| >> > | >> >> When the user disjoined the machine from the domain, she would
have
| >> >> got
| >> >> an
| >> >> warning message saying that the machine account could not be
deleted.
| >> > This
| >> >> is because she doesn't have permission to delete computer
objects from
| >> >> the
| >> >> appropriate container.
| >> >>
| >> >> When she tries to rejoin, there's already a machine account in
Active
| >> >> Directory with the computer's name.
| >> >>
| >> >> You're probably also finding that regular users by default
have the
| >> > ability
| >> >> to add up to 10 machines to a domain. If you need these users
to be
| > able
| >> > to
| >> >> add and remove machine accounts freely from workstations, use
the
| >> > delegation
| >> >> of control wizard to delegate the creation and deletion of
machine
| >> > accounts
| >> >> on the "computers" container. I recommend that you create a
group and
| >> >> delegate permissions to the group rather than delegating to
users
| >> > directly.
| >> >>
| >> >> Hope this helps
| >> >>
| >> >> Oli
| >> >>
| >> >> | >> >> >I have here this User1tech here that complains that when she
disjoins
| > a
| >> >> > workstation from the domain, goes there a day or two later
and
| > attempt
| >> > to
| >> >> > rejoin SameComputerName to the domain, a message "account
already
| >> > exists"
| >> >> > is
| >> >> > displayed and joining operation is unsucessful.
| >> >> >
| >> >> > Then if User1tech tries to add the computer account using a
| >> >> > different
| >> >> > name,
| >> >> > the joining operation works accordingly, what tells me
permissions
| > wise
| >> >> > that
| >> >> > should be fine.
| >> >> >
| >> >> > What's wrong ?
| >> >> > Win2000ADSP4
| >> >> >
| >> >> >
| >> >>
| >> >>
| >> >
| >> >
| >>
| >>
| >
| >
|
|
 
D

Diane McCorkle

Just a thought...

We handle it in a smilar way, our branches can add/remove anything under
their OU's, so the designated person can remove the computer from the
Branchname\Computers folder, or rename it.

But when they add a computer into the domain, it puts that account in the
default Computers OU, and they do NOT have the rights to that, I still
haven't come up with a safe workaround for this.

my 2 bytes..

Diane


Right. That should work, so I'm also having difficulty working out what's
going on. I wonder if the deletion has not replicated to all domain
controllers before the join takes place and a different domain controller is
being used for the domain join. Just a thought.

If I have any more thoughts, I'll let you know.

Oli
 
M

Marlon Brown

It may be a replication issue.
I copied he techaccount, attempted to unjoin/rejoin computer account and
that worked accordingly.

I have total of 4 sites, and I now I will try to to do same operation from
site he experienced the problem.
 
O

Oli Restorick [MVP]

There are two approaches to this. The first is to create the computer
account ahead of time using dsa.msc. The second would be to use netdom.exe
to specify the desired destination OU when joining the domain from the host.

The syntax for Netdom is, how can I put this, non-trivial. Ideally, you'd
want it in a batch file on a shared drive, but as you're not domain-joined
at the point when you need the file, it is tricky.

Hope this helps

Oli
 
M

Marlon Brown

I couldn't reproduce this case;
I asked user to unjoin/rejoin from remote sites and the whole thing worked.
 

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

Top