Script changes in local admin rights XP Pro desktops

Posted on 2005-05-06
Last Modified: 2010-08-05

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?
Question by:yvsupport
    LVL 8

    Expert Comment

    by:ITDharam 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.
    LVL 8

    Accepted Solution

    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.

    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,
    LVL 25

    Assisted Solution

    by:Ron M
    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

    Featured Post

    Free camera licenses with purchase of My Cloud NAS

    Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

    Join & Write a Comment

    Lets look at the default installation and configuration of FreeProxy 4.10 REQUIREMENTS 1. FreeProxy 4.10 Application - Can be downloaded here ( 2. Ensure that you disable the windows fi…
    Some time ago I was asked to set up a web portal PC to put at our entrance. When customers arrive, they could see a webpage 'promoting' our company. So I tried to set up a windows 7 PC as a kiosk PC.......... I will spare you all the annoyances I…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now