WMI:RPC服务器不可用。 (从HRESULT异常:0x800706BA)抛出时,尝试连接到远程计算机 [英] WMI: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) throws when try to connect to remote machine

查看:2933
本文介绍了WMI:RPC服务器不可用。 (从HRESULT异常:0x800706BA)抛出时,尝试连接到远程计算机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用下面的code。使用WMI连接到远程计算机:

I'm using the following code to connect to remote machine using 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)

I'm getting the following exception: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

经过所有步骤描述<一href="http://www.s-$c$c.com/kayako/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=14">in这篇知识库文章,一切都在远程机器确定。

Checked all steps described in this knowledgebase article, everything is OK on remote machine.

用户是管理员在远程机器上。

User is Administrator on remote machine.

试过WBEMTEST工具,同样的结果。

Tried Wbemtest tool, the same result

有没有人有一个想法发生了什么事?

Does anyone has an idea what is happening?

在前进,
谢谢 Vasyl

Thanks in advance,
Vasyl

推荐答案

如果你的Win7下,你必须应用程序以管理员身份运行。您也可以尝试connOptions.Impersonation属性的值不同。你打开RPC端口的远程计算机上?请尝试关闭防火墙altogeter在两台机器上。

If you under Win7 you must run app as an administrator. You can also try different values for connOptions.Impersonation property. Did you open RPC port on a remote machine? Try turning off firewall altogeter on both machines.

这篇关于WMI:RPC服务器不可用。 (从HRESULT异常:0x800706BA)抛出时,尝试连接到远程计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆