更新时间: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.