[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 185
  • Last Modified:

Script changes in local admin rights XP Pro desktops

Hi,

Is it possible to add a NT domain global group into the local administrators group on an XP Pro desktop automatically?

I need to use a script as I need to perform this on over 200 machines.

I've had a play with net group and net user but cant get it going.

Any ideas?
0
yvsupport
Asked:
yvsupport
  • 2
2 Solutions
 
ITDharamCommented:
...it looks like net group would allow you to play with group memberships on the domain controller, and don't allow you to change groups on a client machine.  Meanwhile I'll see if I can find something...

In order to modify the group you'll have to use an administrator account, so if you're using a login script, everyone will already have to be a local administrator.  If they aren't local admins...I guess let's find a way to do this first, and determine the requirements from that.  I'll post again when I find something.
0
 
ITDharamCommented:
Maybe this is what you need.  Found it elsewhere on EE.  It basically says you can use a startup script using Group Policies to add a group to the local admin group, even if the user isn't a local admin themselves.

http://www.experts-exchange.com/Operating_Systems/Win2000/Q_21141986.html

I've copied out the contents of the startup script recommended...

net localgroup administrators domain\group /add

There is another suggestion of using a group policy setting called 'restricted groups' which may be another solution for you.

This should at least get you going.

Good luck,
0
 
Ron MalmsteadInformation Services ManagerCommented:
Agree with ITDharam....But make it a logon script...not a startup script....on startup you may not have access to LDAP directory.

net localgroup administrators domain\users /add
net localgroup administrators domain\group /add
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now