Solved

Adding users to the local admins group with bat script

Posted on 2006-10-25
2
2,362 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Written by Glen Knight (demazter) as part of a series of how-to articles. Introduction One of the biggest consumers of disk space with Small Business Server 2008(SBS) is Windows Server Update Services, more affectionately known as WSUS. For t…
The SBS 2011 release date (RTM) is supposed to be around Christmas, 2011.  This article is a compilation of my notes -- things I have learned first hand.  The items are in a rather random order, but I think this list covers most of what is new and d…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

815 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

12 Experts available now in Live!

Get 1:1 Help Now