Solved

Windows 2003 domain - local admin rights

Posted on 2006-11-13
5
293 Views
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..
0
Comment
Question by:MMHDU
  • 2
  • 2
5 Comments
 
LVL 14

Expert Comment

by:inbarasan
Comment Utility
Dear MMHDU,
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 www.sysintenals.com

Hope this helps

Cheers!
0
 

Author Comment

by:MMHDU
Comment Utility
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.
0
 
LVL 4

Expert Comment

by:fuzzyfreak
Comment Utility
Alternatively, use Group Policy - need some help with this?
0
 

Author Comment

by:MMHDU
Comment Utility
If you could point me in the right direction I would appreciate it.
0
 
LVL 4

Accepted Solution

by:
fuzzyfreak earned 125 total points
Comment Utility
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 -

http://windows.stanford.edu/Public/Infrastructure/localgroup.html

Let me know how you get on.

thanks.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction Perhaps more familiar to developers who primarily use VBScript than to developers who tend to work only with Microsoft Office and Visual Basic for Applications (VBA), the Dictionary is a powerful and versatile class, and is useful …
Introduction It seems that at least a couple of times per month, I answer a question that requires automating Outlook from another Microsoft Office application, usually (although not always) to send one or more email messages.  For example: …
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.

762 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

7 Experts available now in Live!

Get 1:1 Help Now