SelectNetworkAdapterIP method of the Win32_TSNetworkAdapterSetting class

Selects a network adapter based on the adapter's IP address.

Syntax

uint32 SelectNetworkAdapterIP(
  [in] string NetworkAdapterIP
);

Parameters

NetworkAdapterIP [in]

The IP address of the network adapter to set.

Return value

Returns zero if the specified IP address is valid, and returns a WMI error code if the IP address is invalid or does not exist. Refer to Remote Desktop Services WMI Provider Error Codes for a list of these values.

Remarks

You can retrieve the IP address of a network adapter by enumerating the properties of the Win32_TSNetworkAdapterListSetting class.

Managed Object Format (MOF) files contain the definitions for Windows Management Instrumentation (WMI) classes. MOF files are not installed as part of the Microsoft Windows Software Development Kit (SDK). They are installed on the server when you add the associated role by using the Server Manager. For more information about MOF files, see Managed Object Format (MOF).

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
Root\CIMv2\TerminalServices
MOF
TSCfgWmi.mof
DLL
TSCfgWmi.dll

See also

Win32_TSNetworkAdapterSetting