0

I upgraded some machines to XP SP3, and now whenever the user tries to install anything they get a "You must be an administrator" dialog box; however I went in locally and added the user as part of the Administrator's group to the local computer's Users and Groups (i.e. Admin Tools -> Computer Management -> Local Users and Groups). The user has standard rights on the domain but nothing that would block this; users on SP2 don't have this problem and can install software.

How do I go about fixing this? It's getting annoying for the users to have to call me over and then have to log out, then log back in as the local Administrator account in order to install anything or configure an IP printer (option is grayed out except with Administrator account).

3
  • Copy WHOAMI.EXE from a Windows Server 2003 machine down to one of the XP machines. Logon as the user who is supposed to be an 'Administrator' and run WHOAMI /ALL. Do you see the 'Administrators' group listed as one of the groups they are a member of? It sounds to me like the user isn't actually getting 'Administrators' group membership for some reason (Restricted Groups policy?). Jun 3, 2009 at 13:58
  • This seems workstation-suppport-like, but I'm pretty sure there are some GPO/domain settings that can cause this. Should be some interesting responses. Jun 3, 2009 at 14:03
  • Instead of "coming over" when an unprivileged user needs to run something as an administrator, why not launch the privileged task on the remote machine with psexec from your console? Doesn't hurt to open a Remote Assistance session first so you can see what the user is doing. (This is also very helpful if you need to open, e.g., a privileged command prompt when giving remote assistance to an unprivileged user.)
    – Skyhawk
    Apr 15, 2010 at 16:48

4 Answers 4

2

Two quick things I can think:

1) If you have a "Restricted Users" GPO set up in your domain, they may be getting removed from the Administrators group everytime there is a gpupdate (~ every 15mins)

2) Have you tried right-clicking (or SHIFT right-clicking) on the install file and choosing "Run as Administrator..."?

1

IMO letting all users run as admin on their local machines is a pretty bad idea, if you are only doing it to make installation of software easier please heed the above comment about right-clicking and running the installation as admin with your own credentials.

0

Use the following VBS to see if they are actually in the Admins Group:

Dim objComp
strComputer = 'Computer Name here
Set objComp = GetObject("WinNT://" & strComputer) 'seems to have issues here.
objComp.GetInfo  'or here....
If objComp.PropertyCount > 0 Then
    Set objGroup = GetObject("WinNT://" & strComputer & "/Administrators,group")
    If objGroup.PropertyCount > 0 Then
        WScript.Echo  "The members of the local Administrators group on " & strComputer & " are:"
        For Each mem In objGroup.Members
            WScript.echo vbTab & Right(mem.adsPath,Len(mem.adsPath) - 8)
        Next
    Else
        WScript.echo "** Connecting to the local Administrators group on " & strComputer & " failed."
        WScript.Quit 1
    End If
Else
    WScript.Echo  "** Connecting to " & strComputer & " failed."
    WScript.Quit 1
End If
-2

You said the user has standard rights on the domain, which suggests a domain account, but you mentioned that the modifications you made were to a local user in "Local Users and Groups". These are two separate concepts.

First, is the user logging on as a local user or domain user? When they log on, is domain set to "Computer name (this computer)", or "Domain name".

If it is a domain account, what you want to do is open Control Panel > User Accounts. - Click Add - Type the username and domain - Choose "other" and set it to Administrators.

This gives that domain user administrative rights to that specific computer.

2
  • -1: Although they are seperate concepts, he appears to grasp them. His procedure is perfectly valid for giving a domain user local admin rights.
    – pipTheGeek
    Jun 5, 2009 at 18:00
  • You are correct, I mis-read the question as "gave local user admin rights". Whoops.
    – Jeff Miles
    Jun 5, 2009 at 18:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .