→ 🚀Are you a Lansweeper Champion?! Join our Contributor Program Sign up here!

Community FAQ
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?

Archive

This board contains archived posts from the retired Lansweeper Forum and Insiders Community.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now