{"id":41,"date":"2015-03-15T03:52:46","date_gmt":"2015-03-14T16:52:46","guid":{"rendered":"https:\/\/4it.com.au\/kb\/?post_type=article&#038;p=41"},"modified":"2022-11-14T20:05:46","modified_gmt":"2022-11-14T09:05:46","slug":"how-to-enable-windows-updates-from-the-command-line","status":"publish","type":"article","link":"https:\/\/4it.com.au\/kb\/article\/how-to-enable-windows-updates-from-the-command-line\/","title":{"rendered":"How to Enable Windows Updates from the Command Line"},"content":{"rendered":"<p>Here are some simple one liners that will enable you to change the Windows Update Status from the Command Line. \u00a0This works for Windows XP right through to Windows 8. \u00a0<strong>For Windows 7 and higher you will need to run it from an elevated command prompt<\/strong> or from your RMM.<\/p>\n<p>&nbsp;<\/p>\n<h3>Enable Automatic Windows Updates<\/h3>\n<p><code>reg add \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsUpdate\\Auto Update\" \/v AUOptions \/t REG_DWORD \/d 0 \/f<\/code><\/p>\n<h3>Download Updates but don&#8217;t install automatically<\/h3>\n<p><code>reg add \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsUpdate\\Auto Update\" \/v AUOptions \/t REG_DWORD \/d 3 \/f<\/code><\/p>\n<h3>Disable Automatic Windows Updates<\/h3>\n<p><code>reg add \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsUpdate\\Auto Update\" \/v AUOptions \/t REG_DWORD \/d 1 \/f<\/code><\/p>\n<hr \/>\n<h2><span style=\"color: #2f99cf\">Windows Automatic Updates Service<\/span><\/h2>\n<h3>Disable the Service<\/h3>\n<p><code>sc config wuauserv start= disabled<\/code><\/p>\n<h3>Stop the Service<\/h3>\n<p><code>net stop wuauserv<\/code><\/p>\n<h3>Start the Service<\/h3>\n<p><code>net start wuauserv<\/code><\/p>\n<h3>Enable the Service<\/h3>\n<p><code>sc config wuauserv start= auto<\/code><\/p>\n<div style='text-align:left' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>Here are some simple one liners that will enable you to change the Windows Update Status from the Command Line. \u00a0This works for Windows XP right through to Windows 8. \u00a0For Windows 7 and higher you will need to run it from an elevated command prompt or from your RMM. &nbsp; Enable Automatic Windows Updates [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","article-category":[9],"article-tag":[18,191,190,19,367],"class_list":["post-41","article","type-article","status-publish","format-standard","hentry","article-category-windows-commands","article-tag-automatic-updates","article-tag-disable-windows-automatic-updates-command-line","article-tag-enable-windows-automatic-updates-command-line","article-tag-windows","article-tag-wuauserv"],"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":21,"sum_votes":81},"_links":{"self":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/comments?post=41"}],"version-history":[{"count":0,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article\/41\/revisions"}],"wp:attachment":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/media?parent=41"}],"wp:term":[{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article-category?post=41"},{"taxonomy":"article-tag","embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article-tag?post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}