DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 19 Jul 2007 14:36:01 -0700,    posted on: microsoft.public.dotnet.scripting        back       

Thread Index
  1    hello321
          2    Mutabor


WMI Win32_ComputerSystem.Rename failed for remote machine in C#   
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);
Date:Thu, 19 Jul 2007 14:36:01 -0700   Author:  

Re: WMI Win32_ComputerSystem.Rename failed for remote machine in C#   
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);
Date:14 Aug 2007 05:22:24 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us