【发布时间】:2019-05-24 12:50:08
【问题描述】:
我正在使用以下代码通过 WMI 连接到远程机器:
ConnectionOptions connOptions = new ConnectionOptions();
connOptions.Impersonation = ImpersonationLevel.Impersonate;
connOptions.EnablePrivileges = true;
connOptions.Username = "admin";
connOptions.Password = "password";
ManagementScope scope = new ManagementScope(String.Format(@"\\{0}\ROOT\CIMV2", remoteMachine), connOptions);
scope.Connect();
我收到以下异常:RPC 服务器不可用。 (HRESULT 异常:0x800706BA)
检查了in this knowledgebase article 描述的所有步骤,远程机器上一切正常。
用户是远程计算机上的管理员。
试过Wbemtest工具,结果一样
有人知道发生了什么吗?
【问题讨论】: