1

I can run cmd as admin by right click and then clicking "run as administrator". But then windows gives me a pop message asking if "do you want following program to make changes to your computer"...

How can I avoid the popup message and then clicking yes? I have one more program "oracle vm virtualbox" that I want to run without getting the pop up message.

How to do the same?

3
  • I'm not sure it's possible to disable UAC only for a couple programs. This will do it for all programs though.
    – Ben N
    Feb 26, 2016 at 21:09
  • I tried the first answer. But i was not able to disable...I am using my office pc Feb 26, 2016 at 21:15
  • 2
    "I am using my office pc" - Issues specific to corporate IT support and networks are off topic, see On-Topic. Please talk to your IT department.
    – DavidPostill
    Feb 26, 2016 at 23:05

1 Answer 1

1

Use the old Task scheduler trick, which I use since Vista.

Go to Task scheduler Library and make a right click and click "New Folder" and type in "myTasks" to create a new folder.

Go to the folder and create a new task, select the checkbox "Run with highest priviligies". Give it a name like autoElevatePROGRAMNAME, go to the tab "Actions" and select the program you want to execute.

Now create a shortcut on the desktop with this content:

C:\Windows\System32\schtasks.exe /RUN /TN "myTasks\autoElevatePROGRAMNAME"

Now always start the programs with this link.

If this is too complicated, use the Tool UACPass which does all steps for you.

enter image description here

5
  • I tried your method. The program that i want to execute is at C:\Windows\System32\cmd.exe But when i click on the shortcut, a window opens and immediately closes. I am not sure if anything happens. Also the link http://freeavvarea.r00t.la/UACPass-endoesnt work :( Feb 27, 2016 at 15:35
  • I fixed the link. Feb 28, 2016 at 7:47
  • IMO this falls under the category When people ask for security holes as features. Security-wise this is a bad idea. Feb 20, 2018 at 18:00
  • @Bill_Stewart no, because you need to elevate the task scheduler first when create the task via UAC prompt. so if you have no idea stop trolling Feb 21, 2018 at 15:56
  • It was not my intent to antagonize but simply to point out a potential security hole (caveat emptor, as it were). Feb 21, 2018 at 16:00

You must log in to answer this question.

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