Solved

Adding users to the local admins group with bat script

Posted on 2006-10-25
2
2,365 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

In the event you manage a Small Business Server 2003, and you are audited for PCI compliance, there are several changes you must make in order to pass the audit. I can take no credit for discovering any of these fixes or workarounds, but there is no…
Because virtualization becomes more and more common, and, with Microsoft Hyper-V included in Windows Server at no additional costs, and, most server hardware nowadays is more than capable of running a physical Small Business Server (SBS) 2008 or 201…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

732 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