Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
1  
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
add comment

5 Answers

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
add comment

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
add comment

ScriptLogic's Privilege Authority (http://www.scriptlogic.com/products/privilegeauthority/version-comparison.asp) 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. (http://www.beyondtrust.com/Products/PowerBroker-Desktops-Windows-Edition/)

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
add comment
  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
add comment

Setting UAC to autoelevate would be my answer.

http://technet.microsoft.com/library/ee679793.aspx

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.