opening a particular application always with admin privileges
Solution 1
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.
Solution 2
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.
Solution 3
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.
Related videos on Youtube
Suhail Gupta
Updated on September 18, 2022Comments
-
Suhail Gupta over 1 year
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 thenotepad++
(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
-
Synetech almost 12 yearsAre you asking about turning off the UAC prompt for a specific program?
-
Suhail Gupta almost 12 years@Synetech yeah...
-
-
Suhail Gupta almost 12 yearsBut that gives a UAC prompt. I don't want that
-
imtheman almost 12 yearsI don't think there is a way to get around that other than turning UAC off.
-
Suhail Gupta almost 12 yearsI didn't get the method that tells you to make the shortcuts. schtasks /run /TN "Launch Device Manager" Will it be different for notepad++ ?
-
Synetech almost 12 yearsYes, you specify the executable for Notepad++ (e.g.,
notepad++.exe
) in the Program/script field instead ofdevemgmt.msc
, and you give the task a different name (e.g.,Notepad++
instead ofLaunch 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.