{"id":494,"date":"2013-08-14T20:15:39","date_gmt":"2013-08-14T20:15:39","guid":{"rendered":"http:\/\/giraffeit.com\/?p=494"},"modified":"2013-08-14T20:15:39","modified_gmt":"2013-08-14T20:15:39","slug":"wsus","status":"publish","type":"post","link":"https:\/\/giraffeit.com\/index.php\/2013\/08\/14\/wsus\/","title":{"rendered":"WSUS &#8211; machines go then come back ?"},"content":{"rendered":"<p>One of our engineers wrote this little rough and ready script that recreates the \u00a0AccountDomainSid and SUSClientID in the registry. This is caused often by VMs that have been cloned from a template.<\/p>\n<p>&nbsp;<\/p>\n<p>Requirements are that PSEXEC is installed in the same directory as where the script is ran. We tend to create folder on the WSUS server and run it from there<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2795\">@echo off<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2797\">set \/p a=&#8221;Enter IP Address or Name: please DO NOT include \\&#8221;<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2799\">psexec \\%a% net stop wuauserv<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2786\">psexec \\%a% REG DELETE &#8220;HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate&#8221; \/v AccountDomainSid \/f<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2802\">psexec \\%a% REG DELETE &#8220;HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate&#8221; \/v PingID \/f<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2784\">psexec \\%a% REG DELETE &#8220;HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate&#8221; \/v SusClientId \/f<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2782\">psexec \\%a% net start wuauserv<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2778\">psexec \\%a% wuauclt \/resetauthorization \/detectnow<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2779\">psexec \\%a% wuauclt \/reportnow<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2780\">echo&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2781\">echo Machine should reappear in approx 10 minutes.<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2808\">pause<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>He also adapted one that will force a machine to detect and report its WSUS status to the WSUS server<\/p>\n<p>&nbsp;<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2832\">@echo off<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2814\">set \/p a=&#8221;Enter IP Address or Name please DO NOT include \\ : &#8220;<\/p>\n<p>psexec \\%a% net stop wuauserv<\/p>\n<p>psexec \\%a% net start wuauserv<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2813\">rem psexec %a% wuauclt.exe \/resetauthorization<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2829\">psexec \\%a% wuauclt.exe \/detectnow<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2818\">psexec \\%a% wuauclt.exe \/reportnow<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2826\">cls<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2812\">echo &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2824\">echo REPORT STATUS<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2819\">echo &#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2811\">echo A report and detectnow has been run on the machine you specified.<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2792\">pause<\/p>\n<p id=\"yui_3_7_2_1_1376510422135_2790\">GOTO MENU<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of our engineers wrote this little rough and ready script that recreates the \u00a0AccountDomainSid and SUSClientID in the registry. This is caused often by VMs that have been cloned from a template. &nbsp; Requirements are that PSEXEC is installed in the same directory as where the script is ran. We tend to create folder &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/giraffeit.com\/index.php\/2013\/08\/14\/wsus\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;WSUS &#8211; machines go then come back ?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-494","post","type-post","status-publish","format-standard","hentry","category-bog"],"_links":{"self":[{"href":"https:\/\/giraffeit.com\/index.php\/wp-json\/wp\/v2\/posts\/494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/giraffeit.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/giraffeit.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/giraffeit.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/giraffeit.com\/index.php\/wp-json\/wp\/v2\/comments?post=494"}],"version-history":[{"count":0,"href":"https:\/\/giraffeit.com\/index.php\/wp-json\/wp\/v2\/posts\/494\/revisions"}],"wp:attachment":[{"href":"https:\/\/giraffeit.com\/index.php\/wp-json\/wp\/v2\/media?parent=494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/giraffeit.com\/index.php\/wp-json\/wp\/v2\/categories?post=494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/giraffeit.com\/index.php\/wp-json\/wp\/v2\/tags?post=494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}