Windows 2003 domain - local admin rights

Posted on 2006-11-13
Last Modified: 2008-03-10
I've created a domain user that runs a batch file which install some software upon login. Is there a way to get this user to have local admin rights on every computer on the domain? I don't want to add him to the DomainAdmins group..
Question by:MMHDU
  • 2
  • 2
LVL 14

Expert Comment

ID: 17930503
net localgroup administrators username /add

The above command will add the user into Local admin group. You can put this command in login script or remotly execute from your machine using PSexec remote tool. You can download this from

Hope this helps


Author Comment

ID: 17930700
That command won't work as you have to be a local admin to add other users as local admin. I get an access denied error when I put that into a login script of the user.

Expert Comment

ID: 17938224
Alternatively, use Group Policy - need some help with this?

Author Comment

ID: 17938234
If you could point me in the right direction I would appreciate it.

Accepted Solution

fuzzyfreak earned 125 total points
ID: 17938595
Hi MMHDU, I thought you could do it with Group Policy but it appears I am wrong, on investigation though, it seems it has to be a script and I have found one which should work for you, it is the one named ADDAdmin.vbs on this page -

Let me know how you get on.


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

920 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