HighTechTalks DotNet Forums  

WMI Win32_ComputerSystem.Rename failed for remote machine in C#

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss WMI Win32_ComputerSystem.Rename failed for remote machine in C# in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
=?Utf-8?B?aGVsbG8zMjE=?=
 
Posts: n/a

Default WMI Win32_ComputerSystem.Rename failed for remote machine in C# - 07-19-2007 , 05:36 PM






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);

Reply With Quote
  #2  
Old   
Mutabor
 
Posts: n/a

Default Re: WMI Win32_ComputerSystem.Rename failed for remote machine in C# - 08-14-2007 , 08:22 AM






You must add the following code:
connectionOptions.Authentication = AuthenticationLevel.PacketPrivacy;


On Jul 20, 5:36 am, hello321 <hello... (AT) discussions (DOT) microsoft.com>
wrote:
Quote:
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);



Reply With Quote
  #3  
Old   
Mutabor
 
Posts: n/a

Default Re: WMI Win32_ComputerSystem.Rename failed for remote machine in C# - 08-14-2007 , 08:22 AM



You must add the following code:
connectionOptions.Authentication = AuthenticationLevel.PacketPrivacy;


On Jul 20, 5:36 am, hello321 <hello... (AT) discussions (DOT) microsoft.com>
wrote:
Quote:
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);



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.