WMI query faied: Access Denied on a Windows 7 target RRS feed

  • Question

  • Hi,

    I have a target Windows 7 machine from which I want to extract information using WMI. Following are the settings at the target:

    • Port 135 and a port greater than 1024 is open
    • Remote Procedure Call service is running
    • Remote Admin is enabled
    • Dcom services are running
    • WMI service is running
    • User has administrative rights
    • For testing Firewall is off (all of them, private, domain and public) (I turned it off when the query was failing..still no luck)

    In Dcomcnfg..."Edit Limits" for both Access Permissions and Launch and Activation Permissions. Add Performance Monitor Users and allow remote access, remote launch, and remote activation) is done.,.(found on some forum)

    And then when I run 

    wmic -U username%password //xx.xx.xx.xxx "select * from Win32_LogicalDisk" 

    it giver following error: 


    [wmi/wmic.c:196:main()] ERROR: Login to remote object.


    When I try to use WMI Tools on a Windows Xp machine to connect to Windows 7...it fails to connect with error:
    Login Failed to Machine "XYZ"
    Cannot access WMI on the target machine


    Friday, July 8, 2011 12:57 PM


All replies