RabbieBurns Posted August 28, 2008 Posted August 28, 2008 Am I being thick here - I cant seem to think of a way to do this. I want staff to become local administrators of any machine they log into, so that they can have access to installing software on the machine etc. Is there a builtin group I can add them to? Im not really sure how to go about it. I dont want them to be domain administrators, just to have enough privelages on the local machine to install software.. Is there even maybe a group policy setting I can change? RB
cookie_monster Posted August 28, 2008 Posted August 28, 2008 If you use server 2003 use restricted groups to add the staff to the local admins group. I don't envy you though every time we've added staff to local admins it's been a disaster they just can't help but install all manner of rubbish software from all over. http://www.windowsecurity.com/articles/Using-Restricted-Groups.html 1
RabbieBurns Posted August 28, 2008 Author Posted August 28, 2008 yeh its 2003... thanks cookie_monster that sounds exactly what Im looking for
cookie_monster Posted August 28, 2008 Posted August 28, 2008 (edited) A couple of important points to remember with restricted groups. 1. To make life simple add all your staff into one group (i'm sure you already have) then specify that. 2. It will remove any groups or users that you don't specify, inc i think the local admin. So you need to specify in the 'Members of this group' box administrator (Local admin) domain\domain admins domain\staff users (Your staff users) domain\anyone else you want Edited August 28, 2008 by cookie_monster 1
RabbieBurns Posted August 28, 2008 Author Posted August 28, 2008 (edited) So I would right click on restrcited groups, and then add group called local admins or something, and then make the groups you mentioned above members of the local admins group I just created? Edited August 28, 2008 by RabbieBurns
Chuckster Posted August 28, 2008 Posted August 28, 2008 I have a vbscript that will give anyone you desire local admin rights upon logging on and at logoff another script that will remove those rights. Logon 'continue script if errors are encountered On Error Resume Next 'get main objects/variables Set ws = WScript.CreateObject ( "WScript.Shell" ) compname = ws.ExpandEnvironmentStrings ( "%COMPUTERNAME%" ) Set adGrp = GetObject ( "WinNT://" & compname & "/Administrators,group" ) 'add domain groups to local admin group adGrp.Add ( "WinNT://everyone,user" ) 'handle errors If (Err.Number <> 0) Then strError = "AddAdmins.vbs was unable to add Client Services and Help Center to the local Administrators group." strError = strError & vbCrLf & vbCrLf strError = strError & "Error #: " & Err.Number & vbCrLf strError = strError & "Source: " & Err.Source & vbCrLf strError = strError & "Description: " & Err.Description & vbCrLf ws.LogEvent 1, strError Else ws.LogEvent 0, "The local Administrators group was successfully updated." End If Logoff 'continue script if errors are encountered On Error Resume Next 'get main objects/variables Set ws = WScript.CreateObject ( "WScript.Shell" ) compname = ws.ExpandEnvironmentStrings ( "%COMPUTERNAME%" ) Set adGrp = GetObject ( "WinNT://" & compname & "/Administrators,group" ) 'add domain groups to local admin group adGrp.Remove ( "WinNT://everyone,user" ) 'handle errors If (Err.Number <> 0) Then strError = "AddAdmins.vbs was unable to add Client Services and Help Center to the local Administrators group." strError = strError & vbCrLf & vbCrLf strError = strError & "Error #: " & Err.Number & vbCrLf strError = strError & "Source: " & Err.Source & vbCrLf strError = strError & "Description: " & Err.Description & vbCrLf ws.LogEvent 1, strError Else ws.LogEvent 0, "The local Administrators group was successfully updated." End If
cookie_monster Posted August 28, 2008 Posted August 28, 2008 @RabbieBurns: i'm at home now but from memory you call the group 'administrators' as it is on the local pc then add your users and groups in there. Apply a GPO to a test OU then put a client in there to test, took me a bit of fiddling the first time. @Chuckster: how does that script work does it need to run with admin rights to alter membership of the local admin group?
RabbieBurns Posted August 29, 2008 Author Posted August 29, 2008 CookieMonster: Ive got it set up now.. the test user I tried with let me go into control panel and uninstall stuff so I think it has worked? Chuckster: Cheers for the scripts, but I think this has worked cookiemonsters way
cookie_monster Posted August 29, 2008 Posted August 29, 2008 You can check if you open local users and groups on a client PC and look in the local admins groups you should see all of the groups that you added in group policy. 1
jashworth1990 Posted August 29, 2008 Posted August 29, 2008 by the sounds of things you have already solved the problem but i will give you and example of what we do in school, on each machine if you go to control pannel/administrative tool/computer managment/local users and groups/group and at the top you will see administrators, double click on that then select add. you will be able to add any user all readyy registered. hope this helps if the problem is not already solved. please let me know if it does as i am learning I.t. and could do with all the feedback poss thanks Jay
Domino Posted August 29, 2008 Posted August 29, 2008 That would indeed work - but the above methods do not require visiting each machine individually. Which is good when you're dealing with upwards of 300 machines in most cases
RabbieBurns Posted August 29, 2008 Author Posted August 29, 2008 by the sounds of things you have already solved the problem but i will give you and example of what we do in school, on each machine if you go to control pannel/administrative tool/computer managment/local users and groups/group and at the top you will see administrators, double click on that then select add. you will be able to add any user all readyy registered. hope this helps if the problem is not already solved. please let me know if it does as i am learning I.t. and could do with all the feedback poss thanks Jay Thanks for the comment. What cookiemonsters method does is automatically add the user or group of users to that administrators location, so you don't have to visit each computer.
jashworth1990 Posted August 29, 2008 Posted August 29, 2008 ahh yes thats a point but we cant do that because soem of our teachers are closet techies and dont acctually know what they aredoing so break there laptop. but yes i know where you aere coming from
RabbieBurns Posted August 29, 2008 Author Posted August 29, 2008 the beauty of this is that you can specify who you want to become adminsitrators by putting them in groups in Active Directory. What I have done is blanket added all staff, however I could have created a group called Special Staff, and added in a few usernames to the group, and then added that group in the GPO. I have also applied my GPO to ALL non-server machines, however you can also hand-pick which machines the GPO is applied to, say for example, all the machines in one classroom.
cookie_monster Posted August 29, 2008 Posted August 29, 2008 We don't do this anymore but we used to use this method to add some users to the power users group as well, this helped certain apps run but didn't give staff full admin rights. This was a good compromise for users that just have to fiddle with things
RabbieBurns Posted March 13, 2009 Author Posted March 13, 2009 OK well that didn't last long. Now removed staff from local administrators!
stopa003 Posted March 16, 2009 Posted March 16, 2009 OK well that didn't last long. Now removed staff from local administrators! What happened? I'm just about to implement this, is the problem with staff abusing privileges?
RabbieBurns Posted March 16, 2009 Author Posted March 16, 2009 They installed so much crap on them; toolbars, Sky on demand, software for their digital cameras and mobile phones, and other crap. Then they were coming to us complaining that their computers are running slow and not working properly. And blaming us for it. So, they have had the privilege revoked. If they want software on, they can give us advance notice and we will install it for them. More work in the short term, but will save us a lot of time and grief in the long term.
RabbieBurns Posted April 14, 2010 Author Posted April 14, 2010 Im just setting this up again, and whilst it works to give staff admin rights on the local machine, it seems to give them admin rights to every machine. IE, they can browse the c$ and d$ shares of every machine this applies to. How would I have it so they are only adminsitrator of the actual machine they are logged onto ?
john Posted April 14, 2010 Posted April 14, 2010 How are you setting the admin rights? I set mine by logging onto the PC they need admin rights on and going to Control Panel, Users and then you can add the domain user in on that screen and set the type of settings they need EG Administrators. That should AFAIK just work on that one local machine not all the network. If you make them a Domain Admin / Administrators on the AD server then that will apply to all machines on the LAN.
RabbieBurns Posted April 14, 2010 Author Posted April 14, 2010 Im just doing it through cookie_monsters group policy from the 1st page of this thread. I dont fancy visiting every computer to do this, we have about 400 staff with their own machines
srochford Posted April 14, 2010 Posted April 14, 2010 I think you can do this with group policy preferences but I can't find the details :-( I would script it by recording somewhere who "owns" each machine and then use a machine startup script to add that user to local admins just on that machine. This won't work with the restricted groups policy - the policy will reverse your script.
cookie_monster Posted April 14, 2010 Posted April 14, 2010 I think as Steve says scripting will be the only option here restricted groups will add users to the local admins group on all PC's that the GPO applies to this is why it's great for removing people from admins How many PC's do you need to modify? You could create a GPO and filter it to a specific group then lock down the desktop to stop the users mapping drives or browsing UNC paths to another PC's C: drive. What is the need for users to have local admin access is it a problem with certain apps?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now