cn.chenlichao.wmi4j.WMIException: Access is denied, please check whether the [domain-username-password] are correct. Also, if not already done please check the GETTING STARTED and FAQ sections in readme.htm. They provide information on how to correctly configure the Windows machine for DCOM access, so as to avoid such exceptions. [0x00000005]

Stack Overflow | hellzone | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 1

    How to connect remote machine with wmi?

    Stack Overflow | 8 months ago | hellzone
    cn.chenlichao.wmi4j.WMIException: Access is denied, please check whether the [domain-username-password] are correct. Also, if not already done please check the GETTING STARTED and FAQ sections in readme.htm. They provide information on how to correctly configure the Windows machine for DCOM access, so as to avoid such exceptions. [0x00000005]

    Root Cause Analysis

    1. cn.chenlichao.wmi4j.WMIException

      Access is denied, please check whether the [domain-username-password] are correct. Also, if not already done please check the GETTING STARTED and FAQ sections in readme.htm. They provide information on how to correctly configure the Windows machine for DCOM access, so as to avoid such exceptions. [0x00000005]

      at cn.chenlichao.wmi4j.SWbemLocator.connectServer()
    2. cn.chenlichao.wmi4j
      SWbemLocator.connectServer
      1. cn.chenlichao.wmi4j.SWbemLocator.connectServer(SWbemLocator.java:165)
      2. cn.chenlichao.wmi4j.SWbemLocator.connectServer(SWbemLocator.java:177)
      2 frames
    3. com.mycompany.javacombridge
      JACOB.main
      1. com.mycompany.javacombridge.JACOB.main(JACOB.java:60)
      1 frame