有什么方法可以使.exe
文件以管理员身份自动运行?假设我在Windows中以Guest用户身份登录;现在,当我想运行诸如resmon.exe之类的程序时,它需要以管理员身份运行,并弹出以下窗口:
我想知道,如果我有管理员的密码,当我双击时有什么方法可以自动完成此过程resmon.exe
吗?
更新:我在程序上单击鼠标右键,然后选择属性,然后在“安全性”选项卡中更改设置,如下所示:
But when I want to check Run this program as Administrator
in compatibility tab, it is not active! why?
Note : I test other files that those are not in Windows directory,and all the options in compatibility tab are active. I move the resmon.exe
file from Windows directory to another drive (D:) and options activated!!! why?
In the properties of the exe you can set a compatibility option for this. There is also a PE within the SysInternals Suite called ShellRunAs.exe that may prove useful.
update: For system executable files that will not let you edit compatibility options you might be able to work around this by creating a shortcut of that exe and then within the properties of that shortcut you can select "Advanced" and set "run as admin".
如果这不适用于您的用例,则该解决方案可能需要自定义注册表编辑,此处可能不适当提及。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句