How does one run a program at startup that requires UAC elevation?

丶灬走出姿态 提交于 2019-12-10 11:36:17

问题


I have a program that monitors malicious files and deletes them. However it needs administrator rights to run. This program runs at startup, however the UAC popup is annoying for end users, especially if it appears every time the user logs in. Anyway, I am wondering if there is a way to run the program with administrator rights at startup with out nagging the user with the UAC popup.

P.S: Disabling UAC is not a good idea because of security issues for the users.


回答1:


You cannot. Windows Vista (thankfully) blocked applications on startup that tried to elevate. Windows 7 removed the block; causing applications to try to do it.

Your best choice is to:

  • add a Scheduled Task to run your application "At system startup", and have it run "With highest privileges available"



来源:https://stackoverflow.com/questions/16880592/how-does-one-run-a-program-at-startup-that-requires-uac-elevation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!