{"id":3896,"date":"2026-11-26T15:30:00","date_gmt":"2026-11-26T15:30:00","guid":{"rendered":"https:\/\/vpslake.com\/blog\/?p=3896"},"modified":"2026-11-26T15:30:00","modified_gmt":"2026-11-26T15:30:00","slug":"stop-windows-update-restarting-vps","status":"publish","type":"post","link":"https:\/\/vpslake.com\/blog\/2026\/11\/26\/stop-windows-update-restarting-vps\/","title":{"rendered":"Stop Windows Update Restarting Your VPS Safely"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">To stop windows update restart events from interrupting your VPS, set a protected work window and make Windows notify you before installation or reboot. This keeps Windows Server 2019, Windows 10 Pro, or Windows 11 Pro patched while giving MT4\/MT5 EAs and bots a planned maintenance period.<\/p>\n\n\n\n<aside class=\"ap-card\" aria-label=\"Forex VPS for MT4\/MT5 (Buffalo)\">\n<span class=\"ap-card__badge\">Best for EAs<\/span>\n<div class=\"ap-card__body\"><p class=\"ap-card__name\">Forex VPS for MT4\/MT5 (Buffalo)<\/p><p class=\"ap-card__best\">Best for MT4\/MT5 traders running EAs 24\/7 with NY4-hosted brokers<\/p><ul class=\"ap-card__features\"><li>4 GB \/ 3 vCPU from $9.99\/mo, up to 32 GB<\/li><li>About 12-13 ms to Equinix NY4 broker servers (Pepperstone, IC Markets, Fusion Markets), tested 2026-10-15<\/li><li>Runs 24\/7, independent of home power and internet<\/li><li>Full Administrator, dedicated US IPv4<\/li><li>Windows licence BYOL<\/li><\/ul><\/div>\n<div class=\"ap-card__side\"><p class=\"ap-card__price\">$9.99\/mo <small>starting price, per month<\/small><\/p><a class=\"ap-card__btn\" href=\"https:\/\/vpslake.com\/forex-vps\">Order now \u2192<\/a><\/div>\n<\/aside>\n\n\n\n<h2 class=\"wp-block-heading\">What you need<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li>An Administrator account on the VPS.<\/li>\n\n\n<li>The Windows version, current time zone, and normal working or trading hours.<\/li>\n\n\n<li>A weekly maintenance window long enough to install updates, restart, reconnect, and check your applications.<\/li>\n\n\n<li>A backup or export of important terminal profiles, bot settings, and scripts.<\/li>\n\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Do not start by disabling the Windows Update service or deleting its scheduled tasks. The goal is to control when updates and restarts happen, not to leave a public VPS without security fixes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Confirm why the VPS is restarting<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Windows usually downloads an update, installs it, then waits for a restart to finish. Active hours protect the period when Windows expects the device to be in use, but they are not a permanent \u201cnever reboot\u201d switch. Microsoft also notes that a user-scheduled restart can override some policies, and a deadline can eventually force a restart.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First, identify the OS and time zone so you do not schedule maintenance at the wrong local time:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>Press Windows + R, type winver, and press Enter.<\/li>\n\n\n<li>Open <strong>Settings &gt; Time &amp; language &gt; Date &amp; time<\/strong>. On Windows Server, open <strong>Settings &gt; Time &amp; Language &gt; Date and time<\/strong> if the labels differ.<\/li>\n\n\n<li>Record the Windows edition and time zone. For a forex VPS, use the broker\u2019s weekly market-closure period as your starting point, then convert it to the VPS time zone.<\/li>\n\n\n<li>Open <strong>Settings &gt; Windows Update<\/strong> and check whether the page says a restart is pending.<\/li>\n\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Success looks like a known OS version, a known clock, and a clear distinction between a pending Windows Update restart and a restart caused by another program.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Set active hours around your real workload<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Active hours are the first protection against an inconvenient automatic restart. They tell Windows when the VPS is in use, so update restarts are normally attempted outside that period. Microsoft\u2019s current instructions are in its guide to <a href=\"https:\/\/support.microsoft.com\/en-us\/windows\/deployment\/updates-lifecycle\/keep-your-pc-up-to-date-with-active-hours\" target=\"_blank\" rel=\"noopener\">keeping a PC up to date with active hours<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On Windows 11:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>Open <strong>Settings &gt; Windows Update &gt; Advanced options<\/strong>.<\/li>\n\n\n<li>Select <strong>Active hours<\/strong>.<\/li>\n\n\n<li>Choose <strong>Manually<\/strong>, then set a start and end time covering your normal work, bot, or trading session. Use <strong>Automatically<\/strong> if your usage changes and Windows can learn it reliably.<\/li>\n\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">On Windows 10:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>Open <strong>Settings &gt; Update &amp; Security &gt; Windows Update<\/strong>.<\/li>\n\n\n<li>Select <strong>Change active hours<\/strong>, then <strong>Change<\/strong>.<\/li>\n\n\n<li>Set the start and end times, or enable automatic adjustment based on activity.<\/li>\n\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">On Windows Server 2019, you can set the same policy centrally in Local Group Policy in Step 3. Leave a real daily window outside active hours for maintenance; do not set active hours to cover every minute of the day.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Success looks like the Windows Update page showing the hours you chose and no scheduled restart inside that protected period.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Control installation and restart notifications with Group Policy<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Group Policy gives Windows Server a more predictable update workflow than relying only on the Settings app. Microsoft documents the policy path and the server-specific notification option in <a href=\"https:\/\/learn.microsoft.com\/en-us\/windows-server\/administration\/windows-server-update-services\/deploy\/4-configure-group-policy-settings-for-automatic-updates\" target=\"_blank\" rel=\"noopener\">Configure Group Policy settings for Automatic Updates<\/a>.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>Press Windows + R, type gpedit.msc, and press Enter.<\/li>\n\n\n<li>Go to <strong>Computer Configuration &gt; Administrative Templates &gt; Windows Components &gt; Windows Update &gt; Manage end user experience<\/strong>.<\/li>\n\n\n<li>Open <strong>Configure Automatic Updates<\/strong>.<\/li>\n\n\n<li>On Windows Server 2019, select <strong>Enabled<\/strong>, then choose <strong>7 &#8211; Auto Download, Notify to install, Notify to Restart<\/strong>. Windows downloads the update, but you decide when to install it and when to reboot.<\/li>\n\n\n<li>On Windows 10 or Windows 11 Pro, select <strong>3 &#8211; Auto download and notify for install<\/strong> when that option is available, then keep active hours enabled. Do not select a policy that automatically restarts at a fixed time without regard to your workload.<\/li>\n\n\n<li>Open <strong>Turn off auto-restart for updates during active hours<\/strong>, select <strong>Enabled<\/strong>, and enter the same start and end times you chose in Step 2.<\/li>\n\n\n<li>Select <strong>Apply<\/strong>, close the editor, and run the following in an elevated Command Prompt:<\/li>\n\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">~~~bat gpupdate \/force ~~~<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The older policy named <strong>No auto-restart with logged-on users for scheduled automatic updates installations<\/strong> can appear on some systems. Treat it as a temporary guard, not as your main design: Microsoft labels several older restart policies as legacy, and a manually scheduled restart or an update deadline can still take precedence.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Success looks like gpupdate completing without an error and the Windows Update policy showing your chosen behavior after you reopen the editor.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Choose and use a weekly maintenance window<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Active hours are daily protection. A maintenance window is the deliberate time when you actually install updates, restart the VPS, and verify that your workload recovered. For forex, choose the period when your broker\u2019s market is closed and avoid assuming that one fixed UTC time covers every broker or daylight-saving change.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When Windows reports that updates are ready:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>Close MT4\/MT5 terminals, browsers, and scripts cleanly. Save work and make sure important data is synced.<\/li>\n\n\n<li>Start the update installation during the maintenance window. On Server 2019 with option 7, use <strong>Settings &gt; Windows Update<\/strong> and approve the installation.<\/li>\n\n\n<li>When installation finishes, schedule a restart with a short warning period from an elevated Command Prompt:<\/li>\n\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">~~~bat shutdown \/r \/t 900 \/c &#8220;Planned Windows maintenance restart&#8221; ~~~<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>If you discover that a process is still running, cancel that pending restart before the timer expires:<\/li>\n\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">~~~bat shutdown \/a ~~~<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>Reconnect only after the VPS is back online. A provider console can be useful if the RDP session drops during the reboot; VPSLake customers can also use the client area\u2019s console and reboot controls.<\/li>\n\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Success looks like the update history showing the intended update, a clean planned reboot, and a working RDP connection after the window ends.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Start EAs, bots, and desktop apps after reboot<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Preventing a surprise restart is only half the job. A planned reboot is much less disruptive when the workload starts again without manual intervention. The <a href=\"https:\/\/vpslake.com\/blog\/2026\/09\/18\/how-to-set-up-windows-vps-after-purchase\/\">Windows VPS setup checklist<\/a> covers the wider first-login process, while this step focuses on recovery after maintenance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For MT4, MT5, or another graphical application:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>Open <strong>Task Scheduler<\/strong> and select <strong>Create Task<\/strong>.<\/li>\n\n\n<li>On <strong>Triggers<\/strong>, choose <strong>At log on<\/strong>, select the Windows account that runs the terminal, and add a delay of about 30 seconds.<\/li>\n\n\n<li>On <strong>Actions<\/strong>, choose <strong>Start a program<\/strong> and select the application executable.<\/li>\n\n\n<li>On <strong>General<\/strong>, choose <strong>Run only when user is logged on<\/strong> for a desktop terminal that needs its visible session. Do not put broker passwords in a plain-text script.<\/li>\n\n\n<li>On <strong>Conditions<\/strong>, remove a laptop-only power restriction if one is present; a VPS does not need to wait for AC power.<\/li>\n\n\n<li>Right-click the task and choose <strong>Run<\/strong> to test it. Then restart during a maintenance window and confirm that the terminal and EA return.<\/li>\n\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">If you normally close RDP without logging off, review these <a href=\"https:\/\/vpslake.com\/blog\/2026\/10\/30\/keep-programs-running-after-closing-rdp\/\">safe steps for keeping programs running after closing RDP<\/a>. They solve session disconnects; they do not prevent a Windows restart.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6: Verify the policy before your next trading session<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Run a final check instead of waiting for the next update to reveal a mistake:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>Confirm active hours and the Windows time zone.<\/li>\n\n\n<li>Open <strong>Settings &gt; Windows Update<\/strong> and make sure there is no restart time you did not choose.<\/li>\n\n\n<li>Run these commands from an elevated Command Prompt:<\/li>\n\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">~~~bat mkdir C:\\Temp gpresult \/h C:\\Temp\\windows-update-policy.html ~~~<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>Open C:\\Temp\\windows-update-policy.html and confirm that the expected computer policies are applied.<\/li>\n\n\n<li>Test the Task Scheduler entry and check that MT4\/MT5, the EA, or your bot reconnects after a controlled restart.<\/li>\n\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Why turning off Windows Update is a bad fix<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Disabling Windows Update may appear to solve the restart, but it also delays security patches and creates a larger, less predictable update job later. Microsoft recommends deadlines and grace periods so devices remain current while Windows looks for a minimally disruptive restart time; after those periods, a restart can occur regardless of active hours. See <a href=\"https:\/\/learn.microsoft.com\/en-us\/windows\/deployment\/update\/update-policies\" target=\"_blank\" rel=\"noopener\">Microsoft\u2019s update policy guidance<\/a> for the current behavior.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The safer pattern is: download updates automatically, notify before installation, use active hours to protect your workload, install during a weekly window, and restart deliberately. If your VPS has a pending deadline, move the maintenance window forward rather than trying to defeat the update mechanism.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The VPS still restarted outside active hours.<\/strong> Check whether someone scheduled a restart from the Windows Update notification, whether a deadline or grace period expired, or whether another application initiated the reboot. Active hours reduce disruption but are not a guarantee against a manually scheduled or enforced restart.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The Group Policy setting is not visible.<\/strong> Confirm that you are editing Computer Configuration and that gpedit.msc opened with Administrator rights. Windows Home does not include the same local policy editor; a Windows Pro or Windows Server image is the appropriate choice for a VPS that needs these controls.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The EA did not return after the reboot.<\/strong> Run its scheduled task manually, check the executable path and account permissions, and confirm whether the task requires an interactive logon. For a graphical terminal, \u201cRun only when user is logged on\u201d is usually easier to validate than a hidden background session.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQ<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Can I permanently stop Windows Update from restarting my VPS?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can control the timing, but permanently blocking every restart is not a safe maintenance plan. Use active hours, notifications, and a regular maintenance window so the VPS stays patched and your applications have time to close cleanly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Do active hours stop every Windows Update restart?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. They tell Windows when the device is normally in use and usually move automatic restarts outside that period. A restart you schedule yourself, a conflicting policy, or an expired update deadline can still take precedence.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Which Windows Update policy is best for Windows Server 2019?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For a server, Microsoft documents <strong>Configure Automatic Updates<\/strong> option 7: automatically download, then notify to install and notify to restart. Pair it with active hours and a maintenance window instead of disabling updates.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I keep MT4 or MT5 running after a VPS restart?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Create a Task Scheduler task that starts the terminal at log on, add a short delay, and test it with a controlled reboot. Use an interactive Windows session for graphical terminals and a service or startup task designed for headless bots.<\/p>\n\n\n\n<aside class=\"ap-cta\" aria-label=\"Keep your EAs online\"><div class=\"ap-cta__content\"><p class=\"ap-cta__eyebrow\">Planned maintenance<\/p><p class=\"ap-cta__title\">Keep your EAs online<\/p><p class=\"ap-cta__text\">Run MT4 or MT5 on a private Buffalo Windows VPS with full Administrator access and a dedicated US IPv4.<\/p><\/div><a class=\"ap-cta__btn\" href=\"https:\/\/vpslake.com\/forex-vps\">View Forex VPS<\/a><\/aside>\n\n\n\n<script type=\"application\/ld+json\">{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"Can I permanently stop Windows Update from restarting my VPS?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"You can control the timing, but permanently blocking every restart is not a safe maintenance plan. Use active hours, notifications, and a regular maintenance window so the VPS stays patched and your applications have time to close cleanly.\"}}, {\"@type\": \"Question\", \"name\": \"Do active hours stop every Windows Update restart?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"No. They tell Windows when the device is normally in use and usually move automatic restarts outside that period. A restart you schedule yourself, a conflicting policy, or an expired update deadline can still take precedence.\"}}, {\"@type\": \"Question\", \"name\": \"Which Windows Update policy is best for Windows Server 2019?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"For a server, Microsoft documents Configure Automatic Updates option 7: automatically download, then notify to install and notify to restart. Pair it with active hours and a maintenance window instead of disabling updates.\"}}, {\"@type\": \"Question\", \"name\": \"How do I keep MT4 or MT5 running after a VPS restart?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Create a Task Scheduler task that starts the terminal at log on, add a short delay, and test it with a controlled reboot. Use an interactive Windows session for graphical terminals and a service or startup task designed for headless bots.\"}}]}<\/script>\n\n","protected":false},"excerpt":{"rendered":"Stop windows update restart surprises on your VPS with active hours, Group Policy and a safe maintenance window\u2014without turning security patches off.","protected":false},"author":1,"featured_media":3897,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"csco_singular_sidebar":"","csco_page_header_type":"","csco_page_load_nextpost":"","footnotes":""},"categories":[11],"tags":[690,32,68,42,912],"class_list":["post-3896","post","type-post","status-publish","format-standard","has-post-thumbnail","category-windows-server","tag-forex-vps","tag-rdp","tag-vps","tag-windows-server","tag-windows-update","cs-entry"],"_links":{"self":[{"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/posts\/3896","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/comments?post=3896"}],"version-history":[{"count":1,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/posts\/3896\/revisions"}],"predecessor-version":[{"id":4224,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/posts\/3896\/revisions\/4224"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/media\/3897"}],"wp:attachment":[{"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/media?parent=3896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/categories?post=3896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vpslake.com\/blog\/wp-json\/wp\/v2\/tags?post=3896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}