Disable method of the Win32_NetworkAdapter class

The Disable method disables the network adapter.

Syntax

uint32 Disable();

Parameters

This method has no parameters.

Return value

Returns zero (0) to indicate success. Any other number indicates an error. For error codes, see WMI Error Constants or WbemErrorEnum.

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
Root\CIMV2
MOF
CIMWin32.mof
DLL
CIMWin32.dll

See also

Win32_NetworkAdapter

WMI Tasks: Networking

IPv6 and IPv4 Support in WMI