Solved

Adding users to the local admins group with bat script

Posted on 2006-10-25
2
2,363 Views
Last Modified: 2008-01-09
Just wonderin if this will do the above, and if you think its advisable.

net localgroup Administrators %username% /ADD >NUL
0
Comment
Question by:Dinga84
2 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Kane - TechSoEasy earned 50 total points
ID: 17808525
Well, it won't unless you run it from the machine you want to add them to... but you can actually just add a user by using the Server Management Console > Computers > Manage Computer

Also, when you join a workstation to the network with the correct method (http://<servername>/connectcomputer) it will ask you what user to assign to that computer and will automatically make that user a member of the local administrators group.

I personally don't have a problem with this, and it makes for easier management.  However, you do need to enforce software restrictions in order to keep users from installing stuff that you don't want them to.

Jeff
TechSoEasy
0
 
LVL 3

Author Comment

by:Dinga84
ID: 17808593
Jeff,

Was planning on running it from a bat file, however didnt realise that the connectcomputer wizard assigned them as a member of local admin, that takes care of that for me anyway.

Thanks again.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

The problem of the system drive in SBS 2003 getting full continues to be an issue, even though SBS 2008 and SBS 2011 are both in the market place.  There are several solutions to this, including adding additional drive space or using third party uti…
The articles for turning off the Client firewall policy on the internet are for SBS 2008 and don't really help for SBS 2011. They actually moved the Client firewall policy. In 2011, the client firewall policy has moved to the SBS computers conta…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

808 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