Win32_Proxy class
The Win32_Proxy WMI 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;
};
Members
The Win32_Proxy class has these types of members:
Methods
The Win32_Proxy class has these methods.
| Method | Description |
|---|---|
| SetProxySetting |
Creates a persistent Internet connection for WPA using a specified address and port number. |
Properties
The Win32_Proxy class has these 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 client | Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2003 [desktop apps only] |
|
Namespace |
\root\CIMV2 |
|
MOF |
|
|
DLL |
|
See also
- Windows Product Activation Provider
- Win32_WindowsProductActivation
- Win32_ComputerSystemWindowsProductActivationSetting
Send comments about this topic to Microsoft
Build date: 11/19/2012
