RE: Add a domain user group to local computer administrator group

Tech-Archive recommends: Fix windows errors by optimizing your registry



Please see the post w/CNPROGRAMMING group. It does work in AD.

I needed to give students access to the local DEBUGGER USERS group on 32 lab
computers so I created the security group in AD, added the students to the
group and then added the group to the local DEBUGGER USERS group.

I hope this helps and again, sorry for pasting the wrong script earlier.


"MJG" wrote:

> Hi Doug,
>
> Will this work for a active directory domain?
>
> "DataDoug" wrote:
>
> > The following puts domain user BDPA in the local admin group:
> >
> > '*******************************************************************************
> > '* File: AddBDPAUser.vbs
> > '* Purpose: Adds BDPA (domain USer) to local admin group.
> > '*
> > '* Usage: Double Click Script from desired PC to run local or edit
> > strComputer = "." with remote PC name
> > '* Version: 1.0 (22 Oct 04)
> > '* Technology: VBSCRIPT
> > '* Requirements:
> > '* Author: By DataDoug
> > '* History:
> > '*******************************************************************************
> >
> > ' Set the workstation for this action. Replace the "." with a computer name
> > for remote access.
> > strComputer = "."
> >
> > ' Bind to local admin group.
> > Set objGroup = GetObject("WinNT://" & strComputer & "/Administrators,group")
> >
> >
> > ' Bind to domain user BDPA
> > Set objUser = GetObject("WinNT://isd535/BDPA,user")
> >
> > ' Pass path value to local computer
> > objGroup.Add(objUser.ADsPath)
> >
> >
> >
> > "MJG" wrote:
> >
> > > Hi,
> > >
> > > I was wondering if there is a way to script adding a domain user group to
> > > the local administrator group to workstations on our domain. Thanks for you
> > > help.
.



Relevant Pages

  • Re: Domain Users
    ... which domain user accounts may log in locally. ... accounts members of Users). ... > appears as though they are all in the Users group. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: connection failed error
    ... Is the sql server service running as localsystem or as a domain user? ... >> MVP SMS ... >>> I don't have a local dcom users group in active directory. ...
    (microsoft.public.sms.admin)
  • Re: user account
    ... That just means that the domain user or group will have the right or permission, ... the domain users group is added to the local users ... Then any user group permission ...
    (microsoft.public.win2000.group_policy)
  • Re: Name Changes
    ... > the domain user to the machine, ... > such as power user, ... adding the domain user to a local admin or power users group. ...
    (microsoft.public.exchange2000.admin)
  • Re: Hlp - DB security mystery
    ... One of the other computers has as well, ... I triple checked the mdw and the Users group has NO ... to secure, including creating a brand new mdw. ... The database in on a network share to which only my group and I have access. ...
    (microsoft.public.access.security)