Jump to content

Recommended Posts

Posted

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

Posted (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 by cookie_monster
  • Thanks 1
Posted (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 by RabbieBurns
Posted

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

Posted

@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?

Posted

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

Posted

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

Posted

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

Posted
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.

Posted
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
Posted
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.
Posted
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 ;)
  • 6 months later...
Posted
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?

Posted

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.

  • 1 year later...
Posted
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 ?
Posted
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.
Posted
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
Posted

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.

Posted

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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...