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
Solved

Batch file

Posted on 2013-06-04
3
340 Views
Last Modified: 2013-06-05
i have this script: net localgroup Administrators "techlabtest\Finance" /Add
techlabtest is my domain
Finance is my security group
Inside Finance there are 3 domain user which do not have admin access.
I want to give them admin access at the same time.

Just for testing my script, When i run it manually on a user pc, i got access denied.

When i run it on an administrators account, it works well.

Please help me.

Thanks
0
Comment
Question by:techlabtest
3 Comments
 
LVL 84

Accepted Solution

by:
oBdA earned 500 total points
ID: 39218693
The security model of Windows would be pretty weak if just about everybody could add a group to the local Administrators group of a server.
In other words: you have to be a local administrator to add other members to the local Administrators group. No way around it.
You can use a Restricted Groups GPO if you want to automate this.
Restricted Groups
http://technet.microsoft.com/en-us/library/cc785631(v=ws.10).aspx
0
 
LVL 7

Expert Comment

by:BT15
ID: 39219735
the above holds true if you are launching the script manually.

However, if you assign the script as a startup script in a GPO, then it will probably work the next time the machine reboots.

We do something similar here with VBS
0
 

Author Closing Comment

by:techlabtest
ID: 39221368
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
inplace upgrade from Windows 2003 R2 to 2012 8 90
Questions about DHCP migration 5 81
OS Selection Menu 1 47
IDE for Python 5 21
This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

828 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