WMI RPC服务器不可用。 (异常来自HRESULT:0x800706BA) [英] WMI The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

查看:5293
本文介绍了WMI RPC服务器不可用。 (异常来自HRESULT:0x800706BA)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序的要求是类似下面。应用程序将域管理系统上运行,这将ping通所有的机器到该域下,将需要的磁盘驱动器,CPU和RAM的详细信息,从所有域的系统。



每当我试图平机我收到错误




RPC服务器不可用(从HRESULT异常:0x800706BA)。




我使用来连接远程机器代码是

  ConnectionOptions选项=新ConnectionOptions(); 
options.EnablePrivileges = TRUE;
options.Impersonation = ImpersonationLevel.Impersonate;
options.Username = System.Configuration.ConfigurationSettings.AppSettings [AccessUserName]的ToString()。
options.Password = System.Configuration.ConfigurationSettings.AppSettings [AccessPassword]​​的ToString()。
options.Authority =ntlmdomain:+ System.Configuration.ConfigurationSettings.AppSettings [域名]的ToString();
options.Authentication = AuthenticationLevel.Packet;
管理范围范围=新的管理范围(\\\\+ sMachineIP +\\root\\cimv2选项);
scope.Connect();


解决方案

我发现这个解决方案。
我做到了通过启用Windows防火墙中的Windows Management Instrumentation(WMI)规则。




1] Windows防火墙。

2]允许程序通过Windows防火墙应用程序或功能。

3]启用Windows管理规范(WMI)域特权。




有一些其他的事情也可以检查。



1]远程计算机被防火墙阻止。

解决方法:打开组策略对象编辑器管理单元(输入gpedit.msc),以编辑用于在您的组织来管理Windows防火墙设置的组策略对象(GPO) 。打开计算机配置,打开管理模板,打开网络,打开网络连接,打开Windows防火墙,然后打开域配置文件或标准配置文件,这取决于您要配置哪个配置文件。启用以下异常:允许远程管理例外和允许文件和打印机共享例外



2]主机。名称或IP地址有误或远程计算机关机
解决方法:。验证正确的主机名或IP地址



3]TCP / IP NetBIOS助手服务没有运行
解决方法:Verity的说,TCP / IP NetBIOS助手运行并重新启动后设置为自动启动。



4]远程过程调用(RPC)服务没有运行远程计算机
解决方法:Verity的是远程过程调用(RPC)正在运行,并重新启动后设置为自动启动


$。 b $ b

5]Windows管理规范的服务是不是在远程计算机上运行
解决方法:Verity的是Windows管理规范正在运行并设置自动重新启动后启动。


My application requirement is like below. Application will run on domain admin system which will ping all machine under that domain, it will take disk drive, CPU and RAM details from all domain systems.

Whenever I'm trying to ping machine I'm getting error that

"The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)"

Code I'm using to connect remote machine is

ConnectionOptions options = new ConnectionOptions();
options.EnablePrivileges = true;
options.Impersonation = ImpersonationLevel.Impersonate;
options.Username = System.Configuration.ConfigurationSettings.AppSettings["AccessUserName"].ToString();
options.Password = System.Configuration.ConfigurationSettings.AppSettings["AccessPassword"].ToString();
options.Authority = "ntlmdomain:" + System.Configuration.ConfigurationSettings.AppSettings["DomainName"].ToString();
options.Authentication = AuthenticationLevel.Packet;
ManagementScope scope = new ManagementScope("\\\\" + sMachineIP + "\\root\\cimv2", options);
scope.Connect();

解决方案

I found the solution for this. I did it by enabling Windows Management Instrumentation (WMI) rule in windows firewall.

1] Windows Firewall.
2] Allow app or feature through windows firewall.
3] Enable Domain Privilege for Windows Management Instrumentation(WMI).

There are some other things also that you can check.

1] The remote computer is blocked by the firewall.
Solution: Open the Group Policy Object Editor snap-in (gpedit.msc) to edit the Group Policy object (GPO) that is used to manage Windows Firewall settings in your organization. Open Computer Configuration, open Administrative Templates, open Network, open Network Connections, open Windows Firewall, and then open either Domain Profile or Standard Profile, depending on which profile you want to configure. Enable the following exception: "Allow Remote Administration Exception" and "Allow File and Printer Sharing Exception".

2] Host name or IP address is wrong or the remote computer is shutdown. Solution: Verify correct host name or IP address.

3] The "TCP/IP NetBIOS Helper" service isn't running. Solution: Verity that "TCP/IP NetBIOS Helper" is running and set to auto start after restart.

4] The "Remote Procedure Call (RPC)" service is not running on the remote computer. Solution: Verity that "Remote Procedure Call (RPC)" is running and set to auto start after restart.

5] The "Windows Management Instrumentation" service is not running on the remote computer. Solution: Verity that "Windows Management Instrumentation" is running and set to auto start after restart.

这篇关于WMI RPC服务器不可用。 (异常来自HRESULT:0x800706BA)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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