详解WMI RPC 服务器不可用的解决方案

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

详解WMI RPC 服务器不可用的解决方案

  2021-04-02 我要评论

本文介绍了详解WMI RPC 服务器不可用的解决方案,分享给大家,具体如下:

ConnectionOptions connectionOptions = new ConnectionOptions();
 connectionOptions.Username = userName;
 connectionOptions.Password = password;
 ManagementScope managementScope = new ManagementScope("\\\\" + host + "\\root\\cimv2", connectionOptions);
 try
 {
  managementScope.Connect();
 }
 catch
 {
 }

 发生"RPC 服务器不可用"或者其它无法连接的情况下(确保连接本机没有问题)的解决方案:

1 检查远程服务器 “Remote Procedure Call”、“DCOM Server Process Launcher” 和 “DHCP Client”服务 是否开启

2  检查远程服务器 本地安全策略--本地策略--安全选项--网络访问:本地帐户的共享和安全模式--属性 选择:经典-本地用户以自己的身份验证

3  在远程服务器上,运行"netsh firewall set service RemoteAdmin".

您可能感兴趣的文章:

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们