Welcome, Register for free! or Login below:
EduGeek.net RSS Feeds Register FAQ Members Social Groups User Map Calendar Search Today's Posts Mark Forums Read

How do you do....it?

How do you do it forum sponsored by
How do you do it Sponsored by Citnexus

Do you know how to do it? Do you want to let other people know? Post them here. We'll move them once we get a Wiki setup.

Go Back   EduGeek.net Forums > Technical > How do you do....it?
Reply
 
LinkBack Thread Tools Search Thread Language
Sponsored Links
Old 28-08-2008, 04:02 PM   #1
 
RabbieBurns's Avatar
 
Join Date: Apr 2008
Location: glasgow
Posts: 732
uk scotland
Thanks: 84
Thanked 30 Times in 20 Posts
Rep Power: 9 RabbieBurns has a spectacular aura aboutRabbieBurns has a spectacular aura aboutRabbieBurns has a spectacular aura about
Default making staff local administrators

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
  Reply With Quote
Old 28-08-2008, 04:07 PM   #2
 
FN-GM's Avatar
 
Join Date: Jun 2007
Location: Rochdale, Lancashire
Posts: 4,811
uk
Thanks: 156
Thanked 156 Times in 150 Posts
Rep Power: 37 FN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to behold
Send a message via Skype™ to FN-GM
Default

What server OS are you running?

Z
  Reply With Quote
Old 28-08-2008, 04:08 PM   #3
 
cookie_monster's Avatar
 
Join Date: May 2007
Location: Derbyshire
Posts: 1,655
uk uk england
Thanks: 30
Thanked 56 Times in 49 Posts
Rep Power: 17 cookie_monster is a jewel in the roughcookie_monster is a jewel in the roughcookie_monster is a jewel in the roughcookie_monster is a jewel in the rough
Default

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/articl...ed-Groups.html
  Reply With Quote
The Following User Says Thank You to cookie_monster For This Useful Post:
RabbieBurns (29-08-2008)
Old 28-08-2008, 04:13 PM   #4
 
RabbieBurns's Avatar
 
Join Date: Apr 2008
Location: glasgow
Posts: 732
uk scotland
Thanks: 84
Thanked 30 Times in 20 Posts
Rep Power: 9 RabbieBurns has a spectacular aura aboutRabbieBurns has a spectacular aura aboutRabbieBurns has a spectacular aura about
Default

yeh its 2003...

thanks cookie_monster that sounds exactly what Im looking for
  Reply With Quote
Old 28-08-2008, 04:15 PM   #5
 
cookie_monster's Avatar
 
Join Date: May 2007
Location: Derbyshire
Posts: 1,655
uk uk england
Thanks: 30
Thanked 56 Times in 49 Posts
Rep Power: 17 cookie_monster is a jewel in the roughcookie_monster is a jewel in the roughcookie_monster is a jewel in the roughcookie_monster is a jewel in the rough
Default

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

Last edited by cookie_monster; 28-08-2008 at 04:19 PM..
  Reply With Quote
The Following User Says Thank You to cookie_monster For This Useful Post:
RabbieBurns (29-08-2008)
Old 28-08-2008, 04:22 PM   #6
 
RabbieBurns's Avatar
 
Join Date: Apr 2008
Location: glasgow
Posts: 732
uk scotland
Thanks: 84
Thanked 30 Times in 20 Posts
Rep Power: 9 RabbieBurns has a spectacular aura aboutRabbieBurns has a spectacular aura aboutRabbieBurns has a spectacular aura about
Default

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?

Last edited by RabbieBurns; 28-08-2008 at 04:30 PM..
  Reply With Quote
Old 28-08-2008, 04:51 PM   #7
 
Chuckster's Avatar
 
Join Date: Jun 2008
Posts: 51
uk uk england
Thanks: 6
Thanked 0 Times in 0 Posts
Rep Power: 0 Chuckster is an unknown quantity at this point
Default

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

Code:
'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



Code:
'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
  Reply With Quote
Old 28-08-2008, 05:37 PM   #8
 
cookie_monster's Avatar
 
Join Date: May 2007
Location: Derbyshire
Posts: 1,655
uk uk england
Thanks: 30
Thanked 56 Times in 49 Posts
Rep Power: 17 cookie_monster is a jewel in the roughcookie_monster is a jewel in the roughcookie_monster is a jewel in the roughcookie_monster is a jewel in the rough
Default

@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?
  Reply With Quote
Old 29-08-2008, 09:25 AM   #9
 
RabbieBurns's Avatar
 
Join Date: Apr 2008
Location: glasgow
Posts: 732
uk scotland
Thanks: 84
Thanked 30 Times in 20 Posts
Rep Power: 9 RabbieBurns has a spectacular aura aboutRabbieBurns has a spectacular aura aboutRabbieBurns has a spectacular aura about
Default

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
  Reply With Quote
Old 29-08-2008, 10:56 AM   #10
 
cookie_monster's Avatar
 
Join Date: May 2007
Location: Derbyshire
Posts: 1,655
uk uk england
Thanks: 30
Thanked 56 Times in 49 Posts
Rep Power: 17 cookie_monster is a jewel in the roughcookie_monster is a jewel in the roughcookie_monster is a jewel in the roughcookie_monster is a jewel in the rough
Default

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.
  Reply With Quote
The Following User Says Thank You to cookie_monster For This Useful Post:
RabbieBurns (29-08-2008)
Old 29-08-2008, 12:27 PM   #11
 
RabbieBurns's Avatar
 
Join Date: Apr 2008
Location: glasgow
Posts: 732
uk scotland
Thanks: 84
Thanked 30 Times in 20 Posts
Rep Power: 9 RabbieBurns has a spectacular aura aboutRabbieBurns has a spectacular aura aboutRabbieBurns has a spectacular aura about
Default

Works great.

Thanks.
  Reply With Quote
Old 29-08-2008, 03:08 PM   #12
 
jashworth1990's Avatar
 
Join Date: Aug 2008
Location: preston
Posts: 19
uk uk england
Thanks: 5
Thanked 1 Time in 1 Post
Rep Power: 0 jashworth1990 is an unknown quantity at this point
Default

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
  Reply With Quote
Old 29-08-2008, 03:19 PM   #13
 
Domino's Avatar
 
Join Date: Oct 2006
Location: Hastings
Posts: 1,095
uk uk sussex
Thanks: 12
Thanked 69 Times in 57 Posts
Blog Entries: 4
Rep Power: 19 Domino is just really niceDomino is just really niceDomino is just really niceDomino is just really nice
Send a message via MSN to Domino
Default

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
  Reply With Quote
Old 29-08-2008, 03:21 PM   #14
 
RabbieBurns's Avatar
 
Join Date: Apr 2008
Location: glasgow
Posts: 732
uk scotland
Thanks: 84
Thanked 30 Times in 20 Posts
Rep Power: 9 RabbieBurns has a spectacular aura aboutRabbieBurns has a spectacular aura aboutRabbieBurns has a spectacular aura about
Default

Quote:
Originally Posted by jashworth1990 View Post
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.
  Reply With Quote
Old 29-08-2008, 03:36 PM   #15
 
jashworth1990's Avatar
 
Join Date: Aug 2008
Location: preston
Posts: 19
uk uk england
Thanks: 5
Thanked 1 Time in 1 Post
Rep Power: 0 jashworth1990 is an unknown quantity at this point
Default

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
  Reply With Quote
Reply

Register now for FREE and post messages!


Username: Password: Confirm Password: E-Mail: Confirm E-Mail:
Birthday:      
Image Verification
  I agree to forum rules 

Similar Threads
Thread Thread Starter Forum Replies Last Post
VB Script to add local PC user and make an administraor of local PC tosca925 Scripts 5 14-06-2008 12:18 AM
sims administrators for beginners thegrassisgreener MIS Systems 17 30-11-2007 05:42 PM
Do you allow staff to have Local Admin privileges? Ravening_Wolf How do you do....it? 39 08-03-2007 01:50 PM
Stop Local Group Policy Applying to the Local Machine Admin CM786 Windows 5 28-06-2006 08:57 AM
The Ultimate Administrators Toolbox ICTNUT Scripts 7 15-08-2005 11:38 PM



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search Thread
Search Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +1. The time now is 11:43 AM.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Copyright EduGeek.net