WindowsError:[错误740]即使禁用了UAC,所请求的操作也需要提升 [英] WindowsError: [Error 740] The requested operation requires elevation even after disabling UAC

查看:310
本文介绍了WindowsError:[错误740]即使禁用了UAC,所请求的操作也需要提升的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已禁用UAC并在python中运行脚本.

I have disabled UAC and running my script in python.

command = "abcd.exe"
subprocess.Popen(command,stdout=subprocess.PIPE,stderr=subprocess.PIPE).communicate()

此外,我从属性中将应用程序abcd.exe设置为以管理员身份运行.

Also, I set the application abcd.exe from its property to run as admin.

然后我遇到以下错误:

WindowsError:[错误740]请求的操作需要提升

WindowsError: [Error 740] The requested operation requires elevation

推荐答案

您可以尝试使用:

subprocess.call(["abcd.exe"], shell=True)

基本上,这里的重要部分是shell=True;如果设置为 False ,则将出现以下错误.

Basically the important part here is shell=True; if set to False, then you will get the following error.

WindowsError:[错误740]

WindowsError: [Error 740]

这篇关于WindowsError:[错误740]即使禁用了UAC,所请求的操作也需要提升的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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