Re: DSACLS and joining a domain

From: Joe Richards [MVP] (humorexpress_at_hotmail.com)
Date: 05/08/05


Date: Sun, 08 May 2005 10:31:44 -0400

Create computer object allows the creation of the object in AD, it doesn't allow
join by default. However as mentioned later in the thread, by default, auth
users can join 10 machines.

To get the permissions needed to do the join, I would recommend manually
creating a computer account and delegating the join in ADUC and then looking at
the resulting permissions. I did this several years ago for 2K for a script I
wrote to do this stuff but I believe it may have changed for K3.

    joe

--
Joe Richards Microsoft MVP Windows Server Directory Services
www.joeware.net
Eddie Little wrote:
> By the looks of it top posting is the norm here so here we go...
> 
> Thanks Steve, but I am a little confused.
> 
> Is "create computer objects" a "right" that is able to be set using
> something like dsacl (or even setacl)?  I have a feeling I will have to
> mimic this ACE with many iterations of dsacls, which has been very
> inefficient for me.  It takes upwards of 20 seconds to apply something like
> "Reset Password" to one group for one computer object.
> 
> Maybe there are other ways to achieve this goal?  I'm sure others out there
> automate the creation of computer objects and apply rights to "join the
> domain" at the same time.  It seems a very "normal" thing to do.  I was
> hoping for a simple batch file approach.  Something like...
> 
> @echo off
> for /f "delims=" %%A in (comp_names.txt) do (
> dsacls "CN=%%A,OU=Computers,DC=Domain,DC=CA" /I:T /G "Domain\Add Computers
> Goup:CA;Reset Password;"
> dsacls...
> dsacls...
> )
> 
> I guess I will look to a PERL or VBScript solution instead.  Any insight?
> 
> Thanks,
> Ed.
> 
> "Steven L Umbach" <n9rou@nospam-comcast.net> wrote in message
> news:uPCXQZZUFHA.3184@TK2MSFTNGP15.phx.gbl...
> 
>>I believe the user only needs create computer objects to join computers to
>>the domain.  --- Steve
>>
>>
>>"Ed Little" <SPAMlittle_eddieME@hotmail.comNOT> wrote in message
>>news:1jaee.7499$uE3.84@charlie.risq.qc.ca...
>>
>>>Hello,
>>>
>>>I am wondering what the minimum permissions needed to join a computer to
> 
> a
> 
>>>domain are?  I would like to autocreate computer objects using dsadd,
> 
> and
> 
>>>them set the appropriate permissions using dsacls.  Seems easy enough,
> 
> but
> 
>>>it is pretty slow.  When adding a computer in ADUC, and specifying the
>>>group/user who can join it to the domain, it seems to associated  many
>>>unnecessary permissions.  Maybe they are all needed, but mimicing these
>>>settings with dsacls takes for ever.  Any ideas?
>>>
>>>Thanks a bunch.
>>>
>>>Ed
>>>
>>
>>
> 
> 


Relevant Pages

  • Re: What happens to the machine name in AD?
    ... The user needs Write permissions on the computer object to modify all ... usually grant these rights on the OU that contains the computer objects. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Trying to use NetJoinDomain API...
    ... Nope I used the delegation wizard to set ACLs, and I also went in and added ... These are the permissions granted to the group, ... Computer Objects ...
    (microsoft.public.windows.server.active_directory)
  • Re: What happens to the machine name in AD?
    ... The normal user doesn't have these permissions, ... > usually grant these rights on the OU that contains the computer objects. ...
    (microsoft.public.windows.server.active_directory)
  • Re: DSACLS and joining a domain
    ... Thanks Steve, but I am a little confused. ... mimic this ACE with many iterations of dsacls, ... > I believe the user only needs create computer objects to join computers to ... >> them set the appropriate permissions using dsacls. ...
    (microsoft.public.win2000.security)
  • Re: DSACLS and joining a domain
    ... What really happens with this user right is the DACL check is ignored when ... > Create computer objects is an special permission in Active Directory that> you will see on a container such as the domain container or an> Organizational Unit in advanced page when you add a group to or edit> permissions for a group. ... The user right for add workstations to the domain> will only allow a user to add ten workstations to the domain by default. ...
    (microsoft.public.win2000.security)