I am trying to remotely access WMI on machines on my network. There are a few however that are responding with the above error on the code below. I have shut down the firewall application(s) and all ports are available on the machines in question. I have checked the registry for DCOM and have made sure that RPC is running to no avail. Anyone have anything else to check?
ConnectionOptions options = new ConnectionOptions();
options.Username = "*****";
options.Password = "*****";
options.Timeout = new TimeSpan(0,0,0,5,0);
ManagementScope wmiScope = new ManagementScope(@"\\" + inDevice.IPAddress + @"\root\cimv2", options);
ObjectQuery query = new ObjectQuery("SELECT Name, UserName FROM Win32_ComputerSystem");