1

Under Windows Vista, when I check whether my current user account is in Administrators role, I am getting a negative, as shown in the following picture.

Can anyone tell me why I am not in the Administrators role? When I do the check if I am in "Debugger Users" role, I am getting "True"

Not In Administrators Role

Cœur
  • 37,241
  • 25
  • 195
  • 267
dance2die
  • 35,807
  • 39
  • 131
  • 194

1 Answers1

5

In Windows Vista, your account doesn't have the Administrator role unless you've elevated to that level through User Account Control.

My understanding is that you effectively have two user accounts -- one normal level, one administrator level -- with UAC mediating the switch between the two.

Bevan
  • 43,618
  • 10
  • 81
  • 133
  • Technically you have only one account. You initially get a restricted token, when you elevate, you get an elevated token. – 1800 INFORMATION Jan 26 '09 at 00:14
  • I found out how to check whether user is in Admins role or not through a link in another StackOverflow post - http://tinyurl.com/ct5t2b which links to http://tinyurl.com/m5ukz – dance2die Jan 26 '09 at 00:24