{"id":511,"date":"2012-01-25T16:50:00","date_gmt":"2012-01-25T16:50:00","guid":{"rendered":"https:\/\/www.geekmungus.co.uk\/?p=511"},"modified":"2022-11-05T10:53:42","modified_gmt":"2022-11-05T10:53:42","slug":"windows-cannot-obtain-the-domain-controller-name-for-your-computer","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=511","title":{"rendered":"Windows Cannot Obtain the Domain Controller Name for Your Computer"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A Windows XP machine doesn&#8217;t apply computer GPO on boot, all seems to be well and the GPOs can be run once logged on and all appear to be okay. You just don&#8217;t get the software installation happening or any scripts running on boot. Strangely if you set the machine to use a static IP you&#8217;ll find it works ok, only when you use DHCP do you have an issue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"http:\/\/support.microsoft.com\/kb\/239924\">http:\/\/support.microsoft.com\/kb\/239924<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8220;Windows cannot obtain the domain controller name for your computer network. (The specified domain either does not exist or could not be contacted.) Group Policy processing aborted.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The issue is normally caused by one of the following:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. Spanning-tree on the switch port, this blocks connection for 50 seconds while it works on detecting loops, this causes the PC to think the domain is unavailable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. The computer object is disabled, missing or not properly joined in AD.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Or media sense, specifically the DisableDHCPMediaSense command, this ensures that any &#8220;blip&#8221; when the machine is booting doesn&#8217;t get reported to Windows and thus causes an issue when it runs the scripts and software installations on boot.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Start Registry Editor.<\/li><li>Locate the following registry subkey:<ol><li>HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\Tcpip\\Parameters<\/li><\/ol><\/li><li>Add the following registry entry to the<\/li><li>Parameters<\/li><li>subkey:<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\"><li>Name: DisableDHCPMediaSense<\/li><li>Data type: REG_DWORD (Boolean)<\/li><li>Value: 1<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\"><li><strong>Note<\/strong> This entry controls the behavior of Media Sensing. By default, Media Sensing events trigger a DHCP client to take an action. For example, when a connect event occurs, the client tries to obtain a lease. When a disconnect event occurs, the client may invalidate the interface and routes. If you set this value data to 1, DHCP clients and non-DHCP clients ignore Media Sensing events.<\/li><li>Restart the computer.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example Error Messages<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.geekmungus.co.uk\/wp-content\/uploads\/2021\/07\/image-71.png\" alt=\"\" class=\"wp-image-512\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">and<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.geekmungus.co.uk\/wp-content\/uploads\/2021\/07\/image-72.png\" alt=\"\" class=\"wp-image-513\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>A Windows XP machine doesn&#8217;t apply computer GPO on boot, all seems to be well and the GPOs can be run once logged on and all appear to be okay. You just don&#8217;t get the software installation happening or any scripts running on boot. Strangely if you set the machine to use a static IP &#8230; <a title=\"Windows Cannot Obtain the Domain Controller Name for Your Computer\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=511\" aria-label=\"Read more about Windows Cannot Obtain the Domain Controller Name for Your Computer\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-511","post","type-post","status-publish","format-standard","hentry","category-microsoft-windows"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=511"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/511\/revisions"}],"predecessor-version":[{"id":1513,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/511\/revisions\/1513"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}