Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way I can open a particular application always with Admin Privileges ? I mean to say , just double click the application and the application starts with the admin privileges.

I need to edit a lot of xml files in the C:\ directory if windows.To save the edits to those files I need admin privileges.I have to always open the notepad++ (a text editor) with the admin privileges. I do not like every time to right click the application and then run as admin.It takes time !

So is there a direct way ?

NOTE : I don't want to turn this feature (admin) off

share|improve this question
Are you asking about turning off the UAC prompt for a specific program? – Synetech Jul 20 '12 at 16:56
@Synetech yeah... – Suhail Gupta Jul 20 '12 at 16:57

Turning off the UAC prompt for specific programs, or adding a program to a UAC “whitelist” have been common questions since Vista was released.

As you can see, there are lots of questions about it (many of them right here at SU). Unfortunately there is no practical solution to this because there is no “whitelist” (yet? still?)

Instead, you can use a non-ideal, convoluted method using the Task Scheduler to bypass the UAC prompt for specific programs by creating a task, setting it to use admin privileges, and entering the username and password.

Otherwise, you have to either turn down/off the UAC setting or live with it. At least setting the program to always use Admin privileges via the shortcut or compatibility tab like the two suggestions given here helps a little.

share|improve this answer
I didn't get the method that tells you to make the shortcuts. schtasks /run /TN "Launch Device Manager" Will it be different for notepad++ ? – Suhail Gupta Jul 20 '12 at 17:29
Yes, you specify the executable for Notepad++ (e.g., notepad++.exe) in the Program/script field instead of devemgmt.msc, and you give the task a different name (e.g., Notepad++ instead of Launch Device Manager). Then when you create the shortcut to the task, you specify that name (e.g., schtasks /run /TN "Notepad++"). Now you can run the shortcut to the task and it should open without displaying the UAC prompt. – Synetech Jul 20 '12 at 17:36

Right-click the program you want to run as admin then click Properties then go to the Compatibility tab then check Run this program as an administrator.

share|improve this answer
But that gives a UAC prompt. I don't want that – Suhail Gupta Jul 20 '12 at 16:58
I don't think there is a way to get around that other than turning UAC off. – imtheman Jul 20 '12 at 17:00

ScriptLogic's Privilege Authority ( can elevate specific applications. The Community Edition is free.

Beyond Trust also has PowerBroker Desktops that has similar functionality, but I do not think there is a free version. (

There are other products that have this elevation functionality. They basically work by running as a service which is then able to change the privileges of other processes.

share|improve this answer
  1. Make a shortcut to Notepad++ and call it adminNotepad++
  2. Right click on that shortcut and click Properties
  3. Click Advanced and tick Always run as administrator -> OK -> Apply -> OK
  4. Open Notepad++ from the shortcut you called adminNotepad++
share|improve this answer
will it give me a UAC prompt ? – Suhail Gupta Jul 20 '12 at 17:06
ahh, windows 7. didn't notice that. give it a try. – yeedl Jul 20 '12 at 17:14

Setting UAC to autoelevate would be my answer.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .