使用runas命令以管理员身份启动特定程序失败的问题排查求助
runas命令以管理员身份启动特定程序失败的问题排查求助
各位好,我最近在使用runas命令以本地管理员身份启动程序时碰到了个棘手的问题,想请大家帮忙分析下:
我尝试用这条命令启动目标程序:
runas /user:%computername%\administrator "c:\Program Files (x86)\CountMeIn\Monitor.exe"
输入管理员密码后,却得到了错误提示:
Enter the password for PC1\administrator:
Attempting to start c:\Program Files (x86)\CountMeIn\Monitor.exe as user "PC1\administrator" ...
RUNAS ERROR: Unable to run - c:\Program Files (x86)\CountMeIn\Monitor.exe
740: The requested operation requires elevation.
为了排查问题,我换了个程序做测试,同样用runas命令启动VLC播放器却完全正常:
runas /user:%computername%\administrator "c:\Program Files (x86)\VideoLAN\VLC\vlc.exe"
执行后能顺利启动程序,交互过程是:
Enter the password for PC1\administrator:
Attempting to start c:\Program Files (x86)\VideoLAN\VLC\vlc.exe as user "PC1\administrator" ...
有没有大佬能帮我解惑,为什么同样的runas命令,启动CountMeIn的Monitor.exe就会提示需要权限提升,而VLC却能正常运行呢?
备注:内容来源于stack exchange,提问作者parsecpython
相关产品推荐
相关产品推荐

