dsc/ext/PsGallery/xNetworking.3.2.0.0/Examples/Resources/xNetAdapterBinding/1-DisableIPv6.ps1

<#
    .EXAMPLE
    Disabling IPv6 for the Ethernet adapter
#>


configuration Example
{
    param
    (
        [string[]]$NodeName = 'localhost'
    )

    Import-DSCResource -ModuleName xNetworking

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