Skip to content

NetAdapterBinding

Daniel Scott-Raynsford edited this page May 8, 2018 · 6 revisions

NetAdapterBinding

Parameters

Parameter Attribute DataType Description Allowed Values
InterfaceAlias Key string Specifies the alias of a network interface. Supports the use of '*'.
ComponentId Key string Specifies the underlying name of the transport or filter in the following form - ms_xxxx, such as ms_tcpip.
State Write string Specifies if the component ID for the Interface should be Enabled or Disabled. Enabled, Disabled
CurrentState Read string Returns the current state of the component ID for the Interfaces. Enabled, Disabled, Mixed

Description

This resource is used to bind or unbind transport or filters to a network interface.

Examples

Example 1

Disabling IPv6 for the Ethernet adapter

Configuration Example
{
    param
    (
        [Parameter()]
        [System.String[]]
        $NodeName = 'localhost'
    )

    Import-DSCResource -ModuleName NetworkingDsc

    Node $NodeName
    {
        NetAdapterBinding DisableIPv6
        {
            InterfaceAlias = 'Ethernet'
            ComponentId    = 'ms_tcpip6'
            State          = 'Disabled'
        }
    }
}