20

I'am running win XP sp2. How to check that whether I have admin rights or not?

I can't check the system properties. I don't have that much items in the configuration panel. It seems I don't have admin rights, but how to check that formally ? Is there any command line tools for that?

Hello71
  • 8,673
  • 5
  • 42
  • 45

7 Answers7

27

Start -> Run -> cmd.exe

net user <username>

Will show your local group memberships at the bottom of the output so its easy to find. This is probably a lot faster than bumbling through a GUI to look for options (win+R,cmd,enter, no mouse involved).

If you're on a domain, use localgroup instead:

net localgroup Administrators

Check the list of local groups with localgroup on its own.

net localgroup
jtimberman
  • 21,887
5

Another very simple way on XP is to right-click on the clock in the tray and select the Adjust Date/Time command. You get a message if you don't have admin rights.

Keeloid
  • 81
4

There is a very easy way to check if the current user has local admin rights in xp:

  1. right click on start
  2. check if you have the option to "open all users"
  3. if it's there, you have admin rights
FrankS
  • 210
3

If you add the /domain switch to the net command it will run the command at the domain level. That should help those that are looking to run the command on those types of groups and users.

It works from non-admin users. I tested it.

It automatically uses the domain that the computer is a member of. Global Group membership is actually domain group membership.

Using netcommand/help gives very detailed descriptions of the switches. That is how I found out about the switch. If you just use /?, you will only get basic syntax help.

Canadian Luke
  • 24,640
2

that is not universal methode cause such script fails in case of other system language. e.g.: in russian language we have not Administrators but Администраторы (yes, i agree that is absolutly stupid but that is so in microsoft).

there is one more variant for cmd:

if not exist "%logonserver%\admin$\*.*" goto common_user

but experiments show it is not universal too, e.g.: the first administrator logon to system after windows setup (and possibly in many other cases like disabled admin shares via system registry and so on).

1

To see if you are a member of the local administrators group use

net localgroup [admin group name] 

(w/o the brackets, if the group name has spaces use "" around the name).

If you are unsure of the groups use

net localgroup

And that will give you all the local groups on your computer. Then use the first command to see if you're a member. This can help you figure out if you have full admin rights or maybe just Power User rights.

Dustin
  • 385
0

Actually, you just go and right-click any file and click "properties", then look at the security. This will give you a list of usergroups. Check if you're part of the admin usergroup or not and you'll know.

KdgDev
  • 5,758