Win32_Proxy Class
Win32_Proxy Class

The Win32_ProxyWMI class contains properties and methods to query and configure an Internet connection related to Windows Product Activation (WPA).

The following syntax is simplified from MOF code and includes all of the inherited properties, but excludes methods. For reference information about methods, see the table of methods later in this topic.

Syntax

class Win32_Proxy : CIM_Setting
{
  string Caption;
  string Description;
  string ProxyPortNumber;
  string ProxyServer;
  string ServerName;
  string SettingID;
};

Methods

The Win32_Proxy class defines the following method.

MethodDescription

SetProxySetting

Creates a persistent Internet connection for WPA using a specified address and port number.

 

Properties

The Win32_Proxy class defines the following properties.

Caption
Data type: string
Access type: Read-only
Qualifiers: MaxLen(64)

Short textual description of the CIM_Setting object. This property is inherited from CIM_Setting.

Description
Data type: string
Access type: Read-only

Textual description of the CIM_Setting object. This property is inherited from CIM_Setting.

ProxyPortNumber
Data type: string
Access type: Read-only
Qualifiers: MaxLen(1024)

Port number configured on the computer for access to the proxy server specified by the ProxyServer property.

ProxyServer
Data type: string
Access type: Read-only
Qualifiers: MaxLen(1024)

Name of the proxy server configured for the user.

ServerName
Data type: string
Access type: Read-only
Qualifiers: MaxLen(1024)

Name of the computer whose proxy settings are to be accessed.

SettingID
Data type: string
Access type: Read-only
Qualifiers: MaxLen(256)

Identifier by which the CIM_Setting object is known. This property is inherited from CIM_Setting.

Remarks

The Win32_Proxy class is derived from CIM_Setting.

Note  Windows Product Activation is not available on the Itanium-based versions of the Windows operating system.

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

For C++ code examples, see WMI C++ Application Examples.

Requirements

Minimum supported clientWindows XP
Minimum supported serverWindows Server 2003
MOFLicwmi.mof
DLLLicwmi.dll
Namespace\root\cimv2

See Also

Windows Product Activation Provider
Win32_WindowsProductActivation
Win32_ComputerSystemWindowsProductActivationSetting

Send comments about this topic to Microsoft

Build date: 11/3/2009

Community Content

How to?
Added by:shureek
How to disable proxy? And how to set OS not to use proxy for local addresses?
© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View