Thursday, August 4, 2011

4) Create Administrator Mode Shortcuts Without UAC Promptsimage Instead of disabling UAC in any way, what we can do is setup a few shortcuts that bypass UAC entirely. This is especially useful if you open a particular administrator-mode application a dozen times per day. The trick to this is using task scheduler to launch the applications, and then telling task scheduler to run the task. This is more secure than the other options, since only our special shortcut will bypass UAC.

As regular readers know well, I’m a huge fan of using AutoHotkey  to automate my entire computing experience… but in Windows 7 and Vista there’s a serious limitation since you can’t run a script as Administrator by default. This means that your hotkeys can’t interact with windows running in Admin mode… so how do we get around this?
There are three solutions to this problem:
  • Completely Disable UAC – Not the best solution for security purposes, but it works.
  • Compile your script to an executable.
  • Hack the registry and add “Run as Administrator” to the context menu.

No comments:

Post a Comment