cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Pallavi
Engaged Sweeper
hello,
I am getting error-
[COMException (0x800706ba): The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)]
my code is


ConnectionOptions oConn = new ConnectionOptions();
oConn.Username = "abcd";
oConn.Password = "abcd";
string remoteMachine = "xxx.xxx.xx.xx";

oConn.EnablePrivileges = true;
oConn.Authentication = AuthenticationLevel.PacketPrivacy;

oConn.Impersonation = ImpersonationLevel.Impersonate ;

System.Management.ManagementScope oMs = new System.Management.ManagementScope(String.Format(@"\\{0}\Root\CIMV2", remoteMachine), oConn);

//get Process objects
System.Management.ObjectQuery oQuery = new System.Management.ObjectQuery("Select * from Win32_Process");

//Execute the query
ManagementObjectSearcher oSearcher = new ManagementObjectSearcher(oMs, oQuery);


//Get the results
ManagementObjectCollection oReturnCollection = oSearcher.Get();

foreach( ManagementObject oReturn in oReturnCollection )
{

I have Administrator username Password and firewall is off on remote machine...
1 REPLY 1
Hemoco
Lansweeper Alumni
Euh,

Has this anything to do with lansweeper?