{"id":4663,"date":"2011-07-18T10:11:41","date_gmt":"2011-07-18T09:11:41","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/4663-when-remote-desktop-does-not-connect-changing-windows-dns-setttings-remotely.html"},"modified":"2011-07-18T10:11:41","modified_gmt":"2011-07-18T09:11:41","slug":"when-remote-desktop-does-not-connect-changing-windows-dns-setttings-remotely","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/4663-when-remote-desktop-does-not-connect-changing-windows-dns-setttings-remotely.html","title":{"rendered":"When remote desktop does not connect: changing Windows DNS setttings remotely"},"content":{"rendered":"<p>This was an annoying. I tried to remote desktop into my Hyper-V Server today and could not. The message:<\/p>\n<blockquote>\n<p>Remote Desktop cannot verify the identity of the remote computer because there is a time or date difference between your computer and the remote computer.<\/p>\n<p><a href=\"http:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2011\/07\/image21.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2011\/07\/image_thumb20.png\" width=\"404\" height=\"191\" \/><\/a><\/p>\n<\/blockquote>\n<p>Hmm. I typed:<\/p>\n<blockquote>\n<p>net time \\\\myhypervbox<\/p>\n<\/blockquote>\n<p>and it was the same as the time on my desktop.<\/p>\n<p>A Google or two later, and I discovered that this message is caused by an incorrect DNS setting on the target computer. That made sense, since a DNS server died recently. I had changed the settings on the VMs but forgot to do it on the Hyper-V host. Thank you Microsoft for a misleading error message.<\/p>\n<p>Of course my Hyper-V server has no screen attached. So how to change the DNS setting? Umm, not by remote desktop.<\/p>\n<p>I fiddled with netsh for a bit. This looks promising, but it was not playing ball. I tried to list the interfaces and it gave an error saying it could not do so when remote access is not running. Further, I have two network cards in this machine, and Hyper-V creates virtual interfaces, and I was not sure what the correct network interface name was.<\/p>\n<p>Next up was the registry editor. Run Regedit, choose File \u2013 Connect Network Registry. That worked. I went to:<\/p>\n<blockquote>\n<p>HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\tcpip\\Parameters\\Interfaces<\/p>\n<\/blockquote>\n<p>This lists the network interfaces as GUIDs. I went through them one by one, and in the two cases where the NameServer entry was set to the dead server, I changed it to the new one.<\/p>\n<p>There is also an entry for NameServer in the top level Parameters key but this was blank and I left it alone.<\/p>\n<p>If you want to know what all these keys do, there is a guide <a href=\"http:\/\/support.microsoft.com\/kb\/314053\" target=\"_blank\">here<\/a>.<\/p>\n<p>I rebooted the machine, remotely of course:<\/p>\n<blockquote>\n<p>shutdown \/m \\\\myhypervbox \/r<\/p>\n<\/blockquote>\n<p>and when it restarted remote desktop worked again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This was an annoying. I tried to remote desktop into my Hyper-V Server today and could not. The message: Remote Desktop cannot verify the identity of the remote computer because there is a time or date difference between your computer and the remote computer. Hmm. I typed: net time \\\\myhypervbox and it was the same &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/4663-when-remote-desktop-does-not-connect-changing-windows-dns-setttings-remotely.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">When remote desktop does not connect: changing Windows DNS setttings remotely<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[92,97],"tags":[1003],"class_list":["post-4663","post","type-post","status-publish","format-standard","hentry","category-virtualization","category-windows","tag-windows-hyper-v-remote-dns"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/4663","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=4663"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/4663\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=4663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=4663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=4663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}