SelectNetworkAdapterIP method of the Win32_TSNetworkAdapterSetting class
Selects a network adapter based on the adapter's IP address.
uint32 SelectNetworkAdapterIP( [in] string NetworkAdapterIP );
The IP address of the network adapter to set.
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.
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).
|Minimum supported client
|Minimum supported server
||Windows Server 2008