Troubleshooting an Extraneous UAC Prompt

by Aaron Parker on Wednesday, October 15, 2008

in Windows

Even though I log onto my domain machine with a standard user account, I’ve been prompted by UAC to elevate when running Registry Editor. After putting up with it for a couple of months, I finally got around to doing something to fix it today.

To see what was going on I used Process Explorer to see the differences in privileges between a standard process and an elevated Registry Editor. Here’s Notepad running with my standard token:

Notepad

And here’s REGEDIT running with the elevated token. As you can see, the difference is the SeLoadDriverPrivilege privilege:

Regedit

I use TrueCrypt to protect data on one of my USB thumb drives. TrueCrypt, of course, loads a driver when you mount an encrypted disk, and some time back I had been attempting to avoid the UAC prompt involved with mounting the encrypted disk. Sure enough when I took a look in the Local Security Policy editor (SECPOL.MSC), I had given the Users group the ability to Load and unload device drivers:

LoadDriverPrivilege

Removing the right for the Users group, didn’t help me with TrueCrypt, but at least now I can open REGEDIT (which I use far more often) without a UAC prompt.

{ 2 comments }

1 asf Wednesday, October 15, 2008 at 11:34 am

I had to hack the manifest for regedit to remove the require admin part bcuz I’m admin with UAC, but sometimes you just want to look @ HKLM or just edit HKCU

2 Aaron Parker Wednesday, October 15, 2008 at 3:13 pm

Requiring a manual elevation of Regedit would be nice, because as you say, more often that not you just want to look at HKLM or edit HKCU. If manual elevation were the case then I’m sure there would be complaints about that. At least Regedit would be in ’safe’ mode by default.

Comments on this entry are closed.

Previous post: Tomorrow: Developing and Running As Non-Admin

Next post: Flash Player 10 Available, Still No x64 Support