Remote WMI connection

前端 未结 9 1827
心在旅途
心在旅途 2020-12-31 14:46

I want to connect to remote PC running Windows 7, from another PC using ManagementScope on a local network. On remote PC I\'ve created a new user account \"Samuel\" withou

9条回答
  •  北海茫月
    2020-12-31 15:07

    • According to the WMI FAQ on TechNet, the 0x80070005 error indicates a DCOM issue:

      0x80070005 (DCOM ACCESS_DENIED)
      This error occurs when the connected user is not recognized or is restricted in some fashion by the remote server (for example, the user might be locked out). This happens most often when accounts are in different domains. Recent changes to WMI security can also cause this error to occur:

      • Blank passwords, formerly permitted, are not allowed in Windows XP and Windows Server 2003.

      • WMI does not allow asynchronous callbacks to a Windows 98 client. A call like SWbemServices.ExecNotificationQueryAsync from a Windows 98 computer to a Windows XP computer will result in an Access Denied error returned to the Windows 98 machine.

      • The DCOM configuration access setting might have been changed.

      • If the target computer is running Windows XP, the Forceguest value under the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa might be set to force the Guest account off (value is zero).

      (Although Windows XP is mentioned, this may be applied to Windows 7 as well.)

    • The 0x800706BA error, in its rurn, indicates a firewall issue:

      0x800706xx (DCOM RPC error)
      This often occurs when a firewall is configured on the remote computer. You will need to open the appropriate ports on the firewall to permit remote administration using DCOM.

      Try enabling the Remote administration exception in Windows Firewall on the remote computer and see if it helps. To do this from the command line, run the following command in the elevated command prompt:

      netsh advfirewall firewall set rule group="remote admin" new enable=yes
      


      You can also find the DCOM, UAC, Windows Firewall and other settings required for remote WMI access in the Connecting to WMI Remotely Starting with Windows Vista article on MSDN.

    • Also, since Samuel is a nondomain account, you need to grant this account DCOM Remote Access, Remote Launch and Remote Activation permissions on the remote computer as described here.

提交回复
热议问题