Home > OS >  Windows 2008 executive wmi query, returns 0 x80070005 or 0 x80041003
Windows 2008 executive wmi query, returns 0 x80070005 or 0 x80041003

Time:10-08

I developed a program that need to be on the target computer perform WQL statements, query some system parameters, the target computer may be windows2008 system, if the target computer is Windows 7 or windows2008 system, will query will be described below,

I create a new account on the target machine, and to add the account to the administrators group, and then on another computer, through wbemtest tools, use the account executive WQL query, he returns 0 x80070005 access denied error,

I will join the Distributed COM Users group, the account again querying WMI, returns 0 x80041003, if I will join the "new account WMI controls - & gt; Property - & gt; Security ", and set the root namespace all permissions, and select "this namespace and the namespace", to use the new account can query to the part of the command, but there are some order query less than as a result, also did not return any error,

If off UAC control, and restart the computer, then the new users added to the administrators group, you can query, normal

Excuse me: Windows 2008 system, add the administrators group of the user, if you don't close the UAC control, how to set up to get the complete WMI query permissions? Thank you very much!

CodePudding user response:

After many twists and turns, problem solved, such as I expect is a question of authority, the administration do not have permission to network service, so cannot open WMI,
Set method is very simple, have on the network:
1 right click on the "my computer" - & gt;" Management ", "
2 in the "local users and groups" of the Administrators group on the double click, appear to add attributes dialog box,
3 click the "add" button, add user dialog
4 click "advanced" button, and then click "search" button, note: this' NT AUTHORITY \ NETWORK SERVICE users for the built-in account, not directly add,
5 in the "search results" to choose the "Network Service" user, click the "ok"

So the administration has a network service access,
Problem solved,

Formal actually caused the problem before I used some optimization of security software, the optimization is often in view of the network Settings,
And optimization Settings are often general users do not need to, with a safety hazard, but still some people not, because we can't to understand everything, then in unconsciously made some not want Settings, just like me,,,,

In the beginning there is a more simple method is to reinstall system (and I know that is a question of authority, is don't know is where the problem), is actually don't want to,,,,,,,

Sometimes system problems, reshipment is not the only way, problems must be a reason, and as a programming one of these reasons is I want to learn, glad I settled,
To say this is not to say that I how bad, in fact there are many is I don't know, just wanted to say system, reshipment is not the best way to for programming is especially,

Problems in the two days, and finally solved,,


http://bbs.csdn.net/topics/300026274

CodePudding user response:

Win10 no local users and groups how to operate

CodePudding user response:

reference 1st floor Rocloud response:
after many twists and turns, problem solved, as I expected is a question of authority, the administration do not have permission to network service, so cannot open WMI,
Set method is very simple, have on the network:
1 right click on the "my computer" - & gt;" Management ", "
2 in the "local users and groups" of the Administrators group on the double click, appear to add attributes dialog box,
3 click the "add" button, add user dialog
4 click "advanced" button, and then click "search" button, note: this' NT AUTHORITY \ NETWORK SERVICE users for the built-in account, not directly add,
5 in the "search results" to choose the "Network Service" user, click the "ok"

So the administration has a network service access,
Problem solved,

Formal actually caused the problem before I used some optimization of security software, the optimization is often in view of the network Settings,
And optimization Settings are often general users do not need to, with a safety hazard, but still some people not, because we can't to understand everything, then in unconsciously made some not want Settings, just like me,,,,

In the beginning there is a more simple method is to reinstall system (and I know that is a question of authority, is don't know is where the problem), is actually don't want to,,,,,,,

Sometimes system problems, reshipment is not the only way, problems must be a reason, and as a programming one of these reasons is I want to learn, glad I settled,
To say this is not to say that I how bad, in fact there are many is I don't know, just wanted to say system, reshipment is not the best way to for programming is especially,

Problems in the two days, and finally solved,,


http://bbs.csdn.net/topics/300026274
my wmi query 2008, also refused to visit, but synchronous query will not have a problem, not the asynchronous query,
According to your method cannot solve,

CodePudding user response:

reference fengguangle reply: 3/f
... My wmi query 2008, also refused to visit, but synchronous query will not have a problem, not the asynchronous query,
According to your method cannot solve,


Here, http://blog.csdn.net/kpp2008/article/details/6582534, method, do not know whether there is useless

CodePudding user response:

reference fengguangle reply: 3/f
Quote: refer to 1st floor Rocloud response:

.

http://bbs.csdn.net/topics/300026274
my wmi query 2008, also refused to visit, but synchronous query will not have a problem, not the asynchronous query,
According to your method cannot solve,



Somebody in this kind of problem, solution, it is restart , then there will be no problems
  • Related