{"id":283,"date":"2016-08-15T11:52:07","date_gmt":"2016-08-15T10:52:07","guid":{"rendered":"http:\/\/www.snoopdos.com\/blog\/?p=283"},"modified":"2016-08-15T11:52:39","modified_gmt":"2016-08-15T10:52:39","slug":"default-route-keeps-vanishing-on-windows-10","status":"publish","type":"post","link":"http:\/\/www.snoopdos.com\/blog\/default-route-keeps-vanishing-on-windows-10\/","title":{"rendered":"Default route keeps vanishing on Windows 10"},"content":{"rendered":"<p>A number of my PCs have a persistent problem with the default route disappearing when the system is restarted. Since I use Remote Desktop to control most of these machines remotely, it&#8217;s rather annoying; if the PC reboots, I no longer have remote access. <\/p>\n<p>I hoped it would correct itself when I upgraded to Windows 10, but it&#8217;s still happening. In fact, it&#8217;s <i>much<\/i> worse &#8212; Win10 feels it has carte blanche to reboot to install upgrades without asking my permission first and when it does, I have to visit the PC to reset the default route, or find someone to do it for me.<\/p>\n<p>This all started a year or two ago, with a particular Windows 7 update (I&#8217;m not sure which one). The only common factor is that all the affected PCs use static IP addresses with a manually configured default route. It doesn&#8217;t occur when DHCP is used. Most of them also have multiple network adapters.<\/p>\n<p>While I have a workaround using a startup script to manually re-add the missing route, it&#8217;s awkward to run this with the elevated command privileges needed to change the default route.<\/p>\n<p>Google suggested various solutions, including:<\/p>\n<ul>\n<li>Editing the network adapter and switching it to DHCP, exiting, then going back in and switching it to static again. This needs to be done <b>twice<\/b> to work.<\/li>\n<li>Resetting the TCP\/IP stack (by running <I>netsh int reset<\/I> from an elevated command prompt). This is quite drastic.\n<\/ul>\n<p>I tried both of these but neither fixed it for me.<\/p>\n<p>Today, I found something that *did* work. I&#8217;m recording it here in case it helps someone else.<\/p>\n<ul>\n<li>Run <\/i>RegEdit<\/I> and navigate to <code>Computer\\HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\Tcpip\\Parameters\\Interfaces<\/code><\/li>\n<li>Go through each of the interface GUIDs in turn.<\/li>\n<li>One of them will have an IPAddress field matching your main network interface. On this one, confirm that there is a REG_MULTI_SZ field called <b>DefaultGateway<\/b> containing a single text line with the IP address of your default route. If it&#8217;s not there, create it. Similarly, there should be a <b>DefaultGatewayMetric<\/b> field, also REG_MULTI_SZ, containing the single string &#8216;0&#8217;.<\/li>\n<li>On all the other interface GUIDs, delete any DefaultGateway and DefaultGatewayMetric fields entirely.<\/li>\n<\/ul>\n<p>After completing these steps, restart your PC. The correct default route should now be configured.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A number of my PCs have a persistent problem with the default route disappearing when the system is restarted. Since I use Remote Desktop to control most of these machines remotely, it&#8217;s rather annoying; if the PC reboots, I no longer have remote access. I hoped it would correct itself when I upgraded to Windows &hellip; <a href=\"http:\/\/www.snoopdos.com\/blog\/default-route-keeps-vanishing-on-windows-10\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Default route keeps vanishing on Windows 10<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[6,7],"tags":[],"class_list":["post-283","post","type-post","status-publish","format-standard","hentry","category-networking","category-windows"],"_links":{"self":[{"href":"http:\/\/www.snoopdos.com\/blog\/wp-json\/wp\/v2\/posts\/283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.snoopdos.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.snoopdos.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.snoopdos.com\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"http:\/\/www.snoopdos.com\/blog\/wp-json\/wp\/v2\/comments?post=283"}],"version-history":[{"count":9,"href":"http:\/\/www.snoopdos.com\/blog\/wp-json\/wp\/v2\/posts\/283\/revisions"}],"predecessor-version":[{"id":293,"href":"http:\/\/www.snoopdos.com\/blog\/wp-json\/wp\/v2\/posts\/283\/revisions\/293"}],"wp:attachment":[{"href":"http:\/\/www.snoopdos.com\/blog\/wp-json\/wp\/v2\/media?parent=283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.snoopdos.com\/blog\/wp-json\/wp\/v2\/categories?post=283"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.snoopdos.com\/blog\/wp-json\/wp\/v2\/tags?post=283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}