Friday, May 07, 2004

Least Privilege Shortcut

I've been running as a Power User on this laptop for as long as I've had it. In all, there are no real problems. A few programs don't work, but you can always shift-right click -> Run As. Then it takes two clicks: one to select another user, then another to focus the password box. I've created a faster, less click solution. In the directory %USERPROFILE%\SendTo, create a batch file (I called it "Runas Administrator.bat") with one line in it: "runas /user:Administrator %1" (substitute your Administrator user name). Then, on any "runasable" file (exe, mmc, cpl, etc), you can just right click -> Send To -> Runas Administrator, type your password, done! I should have thought of this sooner!

No comments: