Examples/Resources/xDefaultGatewayAddress/1-RemoveDefaultGateway.ps1
<#
.EXAMPLE Remove the IPv4 default gateway from the network interface 'Ethernet'. #> Configuration Example { param ( [Parameter()] [System.String[]] $NodeName = 'localhost' ) Import-DscResource -Module xNetworking Node $NodeName { xDefaultGatewayAddress RemoveDefaultGateway { InterfaceAlias = 'Ethernet' AddressFamily = 'IPv4' } } } |