WMI Access Denied while Win32_Service query

3

I'm using WMI to retrieve REMOTE computer services. To check the results I try WMIC like:

WMIC /NODE:"hostname" /USER:"login" /PASSWORD:"pwd" OS

WMIC /NODE:"hostname" /USER:"login" /PASSWORD:"pwd" SERVICE etc.

Everything's fine on Win server 2k3 machines. But on a new Win server 2k8 it works everything but not SERVICE alias - I just get "0x80041003 Access Denied". I've got this error while remote query (there's no error if I query the SERVICE locally on the server itself).

My user is a admin on this server. I've check Local Security Policies, give permission to the user from root/CIMV2 namespace for remoteEnable, DCOM permission for Remote Access, Remote Lunch, Remote Activation. I've try to enable logging but couldn't find any usefull info. I've read tens articles on this theme but couldn't find answer either.

Here http://technet.microsoft.com/en-us/library/ee692772.aspx I've read: "0x80041003 (WBEM_E_ACCESS_DENIED) This typically results when the process trying to access the namespace does not have the required WMI privileges. The account attempting remote access should be an administrator on the target computer; in addition, the account might need to have a specific privilege enabled. To troubleshoot this error, check the namespace security on the remote namespace to see the privileges enabled for the account."

So, I've done all recommended action with no result.

WHY I can successfully query all aliases (means the user has all necessary rights) but not SERVICE? Now I already don't have any ideas and ask for help.

wmi
wmic
asked on Stack Overflow Apr 25, 2011 by (unknown user)

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0