Solved

Batch file

Posted on 2013-06-04
3
331 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 83

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
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.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

757 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

22 Experts available now in Live!

Get 1:1 Help Now