adding local admin accounts when joining AD

Posted on 2006-04-17
Last Modified: 2010-08-05
Dear Experts:

Can anyone tell me how to either:

add an Active Directory user group to to the local administrators group of an XP box the same way the domain admins group is added

add a specific user account when the same box is added to Active Directory???


Question by:c30keith
    LVL 33

    Accepted Solution

    LVL 33

    Expert Comment

    The above link offers two methods to do what you have asked...
    LVL 21

    Expert Comment

    Create a batch file with the following line (mine adds Enterprise Admins to the Local Admins group)

    net localgroup "administrators" /add "enterprise admins"

    Setup a GPO with a "Computer Startup Script" and add your .bat file.

    Author Comment

    Both of those solutions seem plausible but I am having some difficulty getting this to work. I am going to build a non-production machine and play with it a little more. Please have a bit of patience, I'll get back to this and award some points...


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    I have never ceased to be amazed how many problems you can encounter on a fresh install of a Windows operating system.  This is certainly case in point& Unable to complete ANY MSI installation.  This means Windows Updates are failing and I can't …
    So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    737 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

    19 Experts available now in Live!

    Get 1:1 Help Now