This article introduces a detailed solution to the unavailability of WMI RPC servers. I will share it with you, as follows:
ConnectionOptions connectionOptions = new ConnectionOptions(); = userName; = password; ManagementScope managementScope = new ManagementScope("\\\\" + host + "\\root\\cimv2", connectionOptions); try { (); } catch { }
Solutions for "RPC server is unavailable" or other situations where it cannot be connected (make sure there is no problem connecting to this machine):
1 Check whether the remote servers "Remote Procedure Call", "DCOM Server Process Launcher" and "DHCP Client" services are enabled
2 Check the remote server Local security policy - Local policy - Security options - Network access: Local account sharing and security mode - Properties Select: Classic - Local users authenticate with their own identity
3 On the remote server, run "netsh firewall set service RemoteAdmin".
The above is all the content of this article. I hope it will be helpful to everyone's study and I hope everyone will support me more.