如何在启动时运行需要UAC提升的程序? [英] How does one run a program at startup that requires UAC elevation?

查看:107
本文介绍了如何在启动时运行需要UAC提升的程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个程序可以监视恶意文件并删除它们。但是,它需要管理员权限才能运行。该程序在启动时运行,但是对于最终用户而言,UAC弹出窗口很烦人,尤其是当用户每次登录时都会出现该弹出窗口。无论如何,我想知道是否有一种方法可以在启动时以管理员权限运行程序而不会the

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.

PS:由于用户的安全问题,禁用UAC并不是一个好主意。

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

推荐答案

您不能。 Windows Vista(很幸运)在启动时阻止了试图提升的应用程序。 Windows 7删除了该阻止;导致应用程序尝试这样做。

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.

您最好的选择是:


  • 添加计划任务以运行应用程序在系统启动时 ,并使其运行具有最高权限

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

这篇关于如何在启动时运行需要UAC提升的程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆