dsc/ext/PsGallery/xNetworking.3.2.0.0/Examples/Resources/xDefaultGatewayAddress/1-RemoveDefaultGateway.ps1

<#
    .EXAMPLE
    Removing the default gateway from an interface
#>

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

    Import-DscResource -Module xNetworking
    Node $NodeName
    {
        xDefaultGatewayAddress RemoveDefaultGateway
        {
            InterfaceAlias = 'Ethernet'
            AddressFamily  = 'IPv4'
        }
    }
}