且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

地址"访问被拒绝"异常WMI调用

更新时间:2021-10-09 19:36:12

有些WMI的调用也需要管理员权限。你尝试右键单击您的.exe文件并选择以管理员身份运行?

Some of these WMI calls may need admin privileges. did you try right clicking your .exe file and selecting "Run As Administrator"?

添加一个清单您的程序,以便它总是与运行管理员权限。 这里是另一个链接这是更重要的一点。

Add a manifest to your program so that it always runs with Admin privileges. Here is another link which is more to the point.