{"id":10406,"date":"2019-07-19T08:00:25","date_gmt":"2019-07-19T02:30:25","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=10406"},"modified":"2023-08-05T23:17:05","modified_gmt":"2023-08-05T17:47:05","slug":"automatically-shutdown-after-installing-updates-windows-10","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/automatically-shutdown-after-installing-updates-windows-10\/","title":{"rendered":"How to Auto Shutdown after Installing Updates in Windows 10"},"content":{"rendered":"<p>On patch Tuesdays, you&#8217;ll see a bunch of updates such as Adobe Flash Player Security Update, Servicing Stack update, and\/or the Cumulative Update showing up in the queue when you open Windows Update settings page. For Asian countries, the updates arrive at night or late night.<\/p>\n<p>Installing a Feature Update or Cumulative Update always requires a restart. Once done, you then have to shut down the device manually if you don&#8217;t prefer leaving the computer in sleep or hibernation mode overnight. This means your sleep schedule gets delayed as you&#8217;ll have to be awake until the <a href=\"https:\/\/www.winhelponline.com\/blog\/windows-10-latest-cumulative-update-info-direct-download\/\">Cumulative Update<\/a> is fully downloaded and installed.<\/p>\n<p>You may be wondering how to automatically shut down your Windows 10 computer after the updates are installed.<!--more--><\/p>\n<h2>How to Auto Shutdown After Installing Updates in Windows 10<\/h2>\n<p>Windows 10 does have an option to automatically shut down the system after installing the updates. But, the option is enabled only after the updates are downloaded and initialized for installation. For instance, when you&#8217;re downloading a Feature Update (Windows 10 version upgrade) via Windows Update, you&#8217;ll need to wait till the entire update downloads (maybe 3-4 GB of data) and gets initialized. Only after that, the options <strong>Update and shut down<\/strong> or <strong>Update and restart<\/strong> become available in the Power menu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10407\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/install-updates-shutdown-menu.png\" alt=\"install updates and shut down windows 10\" width=\"319\" height=\"204\" \/><\/p>\n<p>If you use the <strong>Update and shut down<\/strong> option, the mission is partly accomplished. I say &#8220;partly&#8221; because any update requiring a reboot &#8212; such as a Quality\/Cumulative Update or a Feature Update &#8212; isn&#8217;t installed until a reboot&#8217;s taken place. Even if you use the <strong>Update and shut down<\/strong> option, the update(s) are installed during the shutdown and then configured during the subsequent boot. In other words, part of the setup runs when you start the system the next time.<\/p>\n<p>To install the updates successfully, you may enable the <em><strong>Restart this device as soon as possible when a restart is required to install an update<\/strong><\/em>\u00a0setting in the Windows Update Settings, Advanced options page.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10410\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/install-updates-and-restart-1.png\" alt=\"install updates and shut down windows 10\" width=\"701\" height=\"481\" \/><\/p>\n<p>If you enable the <em><strong>Show a notification when your PC requires a restart to finish updating<\/strong><\/em> option, you&#8217;ll see a message like below well in advance before the restart event. This dialog allows you to restart the system immediately or postpone the <strong>restart<\/strong> event by clicking <strong>Not now<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10409\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/install-updates-and-restart-2.png\" alt=\"install updates and shut down windows 10\" width=\"920\" height=\"465\" srcset=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/install-updates-and-restart-2.png 920w, https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/install-updates-and-restart-2-768x388.png 768w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/><\/p>\n<p>The above setting, which many users may dislike and find aggressive, but it&#8217;s <strong>desirable<\/strong> in case you want to leave the Windows Update download\/install process running unattended after you start Windows, while you&#8217;re out of the house, but a restart is needed to complete the update.<\/p>\n<div class=\"rp\"><strong>RELATED:<\/strong> <a href=\"https:\/\/www.winhelponline.com\/blog\/logoff-windows-10-users-after-idle-inactivity-winexit-screen-saver\/\">How to Auto Logoff Idle Users in Windows 10<\/a><\/div>\n<p><strong>Alternately<\/strong>, you can use the Active hours setting in Windows Update options to <a href=\"https:\/\/www.winhelponline.com\/blog\/prevent-wu-restart-active-hours-custom-restart-time\/\">configure the working hours<\/a> (the typical time range when your computer will be in use). Windows 10 won&#8217;t restart the system during active hours.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10408\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/install-updates-and-restart-3.png\" alt=\"install updates and shut down windows 10\" width=\"701\" height=\"480\" \/><\/p>\n<h3>Automatically Shut down Windows 10 after installing updates (after a reboot)<\/h3>\n<p>After configuring the above Windows Update options, Windows 10 will download updates, install them, and restart your computer automatically.\u00a0After a restart, your system will be at the lock screen (assuming that the <strong>Use my sign-in info to automatically finish setting up my device after an update or restart<\/strong> setting is turned off.)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5654\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/10\/w10-sign-in-automatic-updates.png\" alt=\"Use my sign in info to automatically finish setting up my device after an update or restart\" width=\"493\" height=\"235\" \/><\/p>\n<div class=\"rp\"><strong>RELATED:<\/strong> <a href=\"https:\/\/www.winhelponline.com\/blog\/stop-auto-reopen-programs-restart-windows-10\/\">Stop Auto Reopen of Programs after Restart in Windows 10<\/a><\/div>\n<p>You can use Task Scheduler to shutdown Windows 10 automatically at this stage (when <strong>no users<\/strong> are logged on). Create a scheduled task that will run at startup and when the system is left idle for a specific time after startup.<\/p>\n<p>You can do so by launching <code>shutdown.exe -s -t 0<\/code> using a scheduled task, but it&#8217;s always advisable to verify if no users are logged on before shutting down the computer. The task should shut down the system automatically <strong>only<\/strong> if no users are logged on. This can be done using PowerShell or VBScript.<\/p>\n<p>Here is a VBScript that you can use with Task Scheduler to shut down the computer after a specified idle timeout &#8212; only if no users are currently logged on.<\/p>\n<p><!--StartFragment --><\/p>\n<pre>'Shut down the computer if no users are currently logged in.\r\nstrComputer\u2002=\u2002\".\"\r\nSet\u2002objWMIService\u2002=\u2002GetObject(\"winmgmts:\"\u2002_\r\n\u2002\u2002\u2002\u2002&amp;\u2002\"{impersonationLevel=impersonate}!\\\\\"\u2002&amp;\u2002strComputer\u2002&amp;\u2002\"\\root\\cimv2\")\r\nSet\u2002colProcessList\u2002=\u2002objWMIService.ExecQuery(\"Select\u2002*\u2002from\u2002Win32_Process\u2002WHERE\u2002Name='explorer.exe'\")\r\nIf\u2002colProcessList.count\u2002=\u20020\u2002Then\r\n\u2002\u2002\u2002\u2002Dim\u2002WshShell\u2002:\u2002set\u2002WshShell\u2002=\u2002CreateObject(\"WScript.Shell\")\r\n\u2002\u2002\u2002\u2002WshShell.Run\u2002\"c:\\windows\\system32\\shutdown.exe\u2002-s\u2002-t\u2002120\"\r\nEnd\u2002If\r\n<\/pre>\n<h4>Running the script using Task Scheduler<\/h4>\n<ol>\n<li>Copy the above code to Notepad and save the file as <code>shutdown.vbs<\/code><\/li>\n<li>Move <code>shutdown.vbs<\/code> to the <code>C:\\Windows<\/code> directory.<\/li>\n<li>Open Task Scheduler, and click Create Task&#8230;<\/li>\n<li>Assign a name and description for the task.<\/li>\n<li>Click <strong>Change User or Group&#8230;<\/strong>, type <code><strong>SYSTEM<\/strong><\/code> and click OK.<\/li>\n<li>Enable <strong>Run with highest privileges<\/strong>.<\/li>\n<li>Select the Triggers tab, and click New.<\/li>\n<li>In the Begin the task: dropdown, select <strong>At startup<\/strong>, and click OK.<\/li>\n<li>Select the Actions tab, and click New.<\/li>\n<li>In the Program\/script: text box, type <code>wscript.exe<\/code><\/li>\n<li>In the Add arguments box, type\u00a0<code>C:\\Windows\\Shutdown.vbs<\/code> and click OK.<\/li>\n<li>Select the Conditions tab.<\/li>\n<li>Set <strong>Start the task only if the computer is idle for:<\/strong> to <strong>5 minutes<\/strong><\/li>\n<li>Set <strong>Wait for idle for:<\/strong> to <strong>5 minutes<\/strong><\/li>\n<li>Enable the <strong>Wake up the computer to run this task<\/strong> setting.<\/li>\n<li>Click OK to complete the task creation process.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10412\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/shutdown-on-idle-no-users.png\" alt=\"install updates and shut down windows 10\" width=\"632\" height=\"480\" \/><\/li>\n<\/ol>\n<p>Windows 10 will now automatically shut down your computer if it has been idle and no users are currently logged on. The script launches the <code>Shutdown.exe<\/code> command-line with <code>120<\/code> seconds timeout option after which the system shuts down. Before the lapse of the 120-second timeout, the user has the option to abort the scheduled shutdown by running the <code>shutdown.exe \/a<\/code> command-line after logging in.<\/p>\n<p><strong>Note:<\/strong> In Step #8 above, you can also use the <strong>On idle<\/strong> trigger. However, Windows may fail to trigger the script or program after the idle time because of a background program or service that&#8217;s resetting the idle time.<\/p>\n<div class=\"qt\">\n<h4>Definition of &#8220;idle&#8221; state<\/h4>\n<p><em>The Task Scheduler service will check if the computer is in an idle state every 15 minutes. A computer is considered to be in an idle state when a screen saver is running. If a screen saver is not running, then the computer is considered to be in an idle state if there is 0% CPU usage and 0% disk input or output for 90% of the past fifteen minutes and if there is no keyboard or mouse input during this period of time.<\/em><\/p>\n<p><em>In Windows 8 &amp; Windows 10, Task Scheduler performs the same general user absence and resource consumption checks. However, Task Scheduler relies on the operating system power subsystem to detect user presence. By default, the user is considered absent after <strong>four minutes of no keyboard or mouse input<\/strong>. The resource consumption verification time is shortened to 10 minute intervals when the user is present. When the user is away, the verification time is shortened to 30-second intervals. Task Scheduler makes additional resource consumption checks for the following events:<\/em><\/p>\n<ul>\n<li><em>User presence state changed<\/em><\/li>\n<li><em>AC\/DC power source changed<\/em><\/li>\n<li><em>Battery level changed (only when on batteries)<\/em><\/li>\n<\/ul>\n<p><em>When any of the events above happens, Task Scheduler tests the computer for idleness since the last verification time. In practice, this means that Task Scheduler may declare the system as idle immediately after user absence is detected, if the other conditions have been met since the last verification time.\u00a0<\/em><em>The CPU and IO thresholds are set to 80%.<\/em><\/p>\n<p><em>See Microsoft article <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/taskschd\/task-idle-conditions\" target=\"_blank\" rel=\"noopener nofollow noreferrer\">Task Idle Conditions<\/a><\/em><\/p>\n<\/div>\n<p>Once the quality update or feature update is successfully installed, you may disable the <em><strong>Restart this device as soon as possible when a restart is required to install an update<\/strong><\/em> Windows Update option.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On patch Tuesdays, you&#8217;ll see a bunch of updates such as Adobe Flash Player Security Update, Servicing Stack update, and\/or the Cumulative Update showing up in the queue when you open Windows Update settings page. For Asian countries, the updates arrive at night or late night. Installing a Feature Update or Cumulative Update always requires &#8230; <a title=\"How to Auto Shutdown after Installing Updates in Windows 10\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/automatically-shutdown-after-installing-updates-windows-10\/\" aria-label=\"Read more about How to Auto Shutdown after Installing Updates in Windows 10\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[8],"tags":[480,688],"class_list":["post-10406","post","type-post","status-publish","format-standard","hentry","category-windows-10","tag-scripts","tag-windows-update"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":10554,"url":"https:\/\/www.winhelponline.com\/blog\/windows-10-cumulative-updates-install-twice\/","url_meta":{"origin":10406,"position":0},"title":"Why does a Windows 10 Cumulative Update Install Twice?","author":"Ramesh","date":"August 1, 2019","format":false,"excerpt":"You may have installed the latest Windows 10 Cumulative Update via Windows Update or by downloading the .msu package via MU Catalog. After some days, Windows Update may offer you the same update, download, and install it again. You may be wondering why does Windows 10 offer the same update\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"cumulative update installs twice in windows 10","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/08\/wu-install-twice-cu.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/08\/wu-install-twice-cu.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/08\/wu-install-twice-cu.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/08\/wu-install-twice-cu.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":12425,"url":"https:\/\/www.winhelponline.com\/blog\/error-0xc1900223-installing-windows-10-updates\/","url_meta":{"origin":10406,"position":1},"title":"Fix Error 0xc1900223 When Installing Windows 10 Updates","author":"Ramesh","date":"November 27, 2019","format":false,"excerpt":"The error 0xc1900223 may appear when you attempt to update your Windows 10 installation, especially when installing a feature update like v1903 or v1909. There is no actionable advice from Microsoft, regarding this error. As per Microsoft, the error 0xc1900223 indicates that there was a problem downloading and installing the\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"windows update error 0xc1900223 in windows 10 update assistant","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/11\/w10-update-assistant.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/11\/w10-update-assistant.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/11\/w10-update-assistant.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/11\/w10-update-assistant.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":80472,"url":"https:\/\/www.winhelponline.com\/blog\/lcu-errors-0x800703fa-0x80071a2d\/","url_meta":{"origin":10406,"position":2},"title":"Errors 0x800703fa and 0x80071a2d when installing Cumulative Update","author":"Ramesh","date":"March 13, 2026","format":false,"excerpt":"The latest Windows 10 cumulative update may fail with error code 0x800703fa. Many users are experiencing this issue when installing the KB5066791 update (October 14, 2025) or earlier. Installing it using the .MSU file from the Microsoft Update Catalog may not work either. As a result, the affected systems can't\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":24345,"url":"https:\/\/www.winhelponline.com\/blog\/kb5005565-causes-printer-error-0x0000011b\/","url_meta":{"origin":10406,"position":3},"title":"Printer Error 0x0000011B Caused by KB5005565","author":"Ramesh","date":"September 17, 2021","format":false,"excerpt":"After installing the September 14, 2021\u2014KB5005565 Cumulative Update, your computer may not print, especially when you attempt to print via the network. When you do so, the following error occurs: Windows cannot connect to the printer Printer error 0x0000011b (or) Operation could not be completed (error 0x0000011b). None of the\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"printer error 0x0000011b KB5005565","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/09\/printer-error-0x11b.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/09\/printer-error-0x11b.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/09\/printer-error-0x11b.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":23886,"url":"https:\/\/www.winhelponline.com\/blog\/no-internet-after-windows-10-update\/","url_meta":{"origin":10406,"position":4},"title":"No Internet after Installing Windows Updates [Windows 10]","author":"Ramesh","date":"April 29, 2021","format":false,"excerpt":"After installing a Windows Update -- be it a Cumulative Update, Feature Update, or a driver update, internet access may get broken in some configurations. To name a few, the Quality Updates\u00a0 KB4556799, KB4023057, KB4495620, and the 20H2 Feature Update broke network connectivity on some devices. This article provides some\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"change to google public dns ipv4 properties window","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/04\/apps-install-setup-w10.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/04\/apps-install-setup-w10.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/04\/apps-install-setup-w10.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/04\/apps-install-setup-w10.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":4477,"url":"https:\/\/www.winhelponline.com\/blog\/install-cab-msu-updates-mu-catalog\/","url_meta":{"origin":10406,"position":5},"title":"How to Install CAB and MSU Updates from Windows Update Catalog","author":"Ramesh","date":"October 31, 2016","format":false,"excerpt":"Installing updates via Windows Update can be problematic sometimes. For example, downloads may stall at a specific stage due to problems with the Windows Update server or the Content Delivery Network (CDN) that hosts the update in your region. It could also be possible that the Windows Update or BITS\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/10\/dism-install-cab-update.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/10\/dism-install-cab-update.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/10\/dism-install-cab-update.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/10406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=10406"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/10406\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=10406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=10406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=10406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}