Run this cmdlet without any parameters to remove all IP routes from the routing table, including default routes. You can also specify routes to remove by specifying parameters, or by using the Get-NetRoute cmdlet.
I've a multi-homed windows machine (Windows Server 2016) and I want to make sure that outbound traffic never goes out through secondary network interface (progammatically via C#).
The PRINT command will show both IPv4 and IPv6 routes, but the ADD, DELETE, and CHANGE commands work only for IPv4 routes. For IPv6 routes, use the 'interface ipv6' context in netsh.exe. Diagnostic Notes: Invalid MASK generates an error, that is w