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

来自森大科技官方博客
http://www.cnsendblog.com/index.php/?p=234
GPS平台、网站建设、软件开发、系统运维,找森大网络科技!
http://cnsendnet.taobao.com

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".

来自森大科技官方博客
http://www.cnsendblog.com/index.php/?p=234
GPS平台、网站建设、软件开发、系统运维,找森大网络科技!
http://cnsendnet.taobao.com

猜你喜欢

转载自blog.51cto.com/14036626/2462904
wmi
今日推荐