How can I prevent Windows Server 2012's local network connection from using the default gateway provided by a DHCP server? I do not control the DHCP server so the solution must be implemented on the client machine.
I remember registry entries DontAddDefaultRoute
and DontAddDefaultGateway
in Windows NT. These don’t seem to work now.