Tuesday, September 01, 2009

How to Make a Shortcut Always Launch as Administrator / UAC

Windows 7

Since the User Account Control (UAC) was introduced in Vista, and improved in Windows 7 I’ve been looking for ways to optimize ways around it, while still being able to keep it on for safety sake.  This is shown by my previous post on how to always launch a program as elevated

With Windows 7, there is a super fast way to do this.  I use the command prompt a lot, probably because I’m always looking at IP addresses, routes and other networking items that are just easier for me to do in a command prompt.  As you probably know, I use AutoHotKey to make Win+C open a Command prompt window for me, but that only opens it in non-administration mode.

On the Start Menu, I have another command prompt that opens in Administrator mode.  To do this do the following:

  1. Right-Click on the item you want to always launch as administrator, and go to properties.
  2. On the Shortcut tab, click on Advanced.
  3. Check the Run as Administrator check box Run as Administrator

Now each time you click on this link, the shortcut will always launch under administration mode, and you no longer need to right-click and choose run as administrator, which is far more clicks!