this exception Client connection to WINMGMT needs to be encrypted for this operation. Please adjust your IWbemServices proxy security settings and retry. I try to set different setting in the connectOptions but the problem still happens. Any idea? Thanks, Larry //set connection parameters for remote machine connectionOptions.Username = adminUser; connectionOptions.Password = adminUserPassword; //connectionOptions.Authority = "Kerberos:" + Domain + "\\" + serverName; //connectionOptions.Authentication = AuthenticationLevel.Call; //specify WMI path for remote machine wmiPath = String.Format(@"\\{0}\root\cimv2", serverName); return new ManagementScope(wmiPath, connectionOptions);
You must add the following code: connectionOptions.Authentication = AuthenticationLevel.PacketPrivacy; On Jul 20, 5:36 am, hello321 wrote: > this exception > > Client connection to WINMGMT needs to be encrypted for this operation. > Please adjust your IWbemServices proxy security settings and retry. > > I try to set different setting in the connectOptions but the problem still > happens. > > Any idea? > > Thanks, > > Larry > > //set connection parameters for remote machine > connectionOptions.Username = adminUser; > connectionOptions.Password = adminUserPassword; > //connectionOptions.Authority = "Kerberos:" + Domain + "\\" + > serverName; > //connectionOptions.Authentication = AuthenticationLevel.Call; > //specify WMI path for remote machine > wmiPath = String.Format(@"\\{0}\root\cimv2", serverName); > return new ManagementScope(wmiPath, connectionOptions);