Windows – Disable automatic reboots in Windows 10 professional – 2017

windows 10

Wait! Please do not mark this as a duplicate until you have read this entire question. I know full well there is supposed to be a highly upvoted solution here but it is problematic because there have been many important changes to windows since the question was first answered. Some of these changes completely invalidate aspects of the solution (for example see ramhound's first comment in this question here). Also there are now 27 comments below the top answer so any additional comments are unlikely to be read.

So now my question: I wish to prevent windows from rebooting after doing an update because sometimes I want to leave my PC performing a task unattended for up to a week at a time. Can it be done?

SOLUTION FOUND: Windows 10 Reboot Blocker:

A simple Windows-Service that will update this "active hours" timeslot
in the background.

It is free, simple and it works.

March 2019: Still no unwanted reboots.

March 24th 2019: Windows 10 reboot blocker has now been marked as the correct answer in the duplicate question.

Best Answer

  • There are 2 routes you can go.

    1: disable windows updates, and only enable it periodically when you want to manage your windows updates.

    This can be done by disabling the windows update service (wuauserv). Make sure you not just stop it, but also set it to disabled.

    Below a batch script that you can use to manage enabling and disabling automatic updates. Make sure you run this as administrator.

    @echo off
    set /p q=Do you want to (e)nable or (d)isable windows update?
    if "%q%"=="e" goto enable
    if "%q%"=="d" goto disable
    echo Answer invalid. Enter e or d.
    goto end
    sc config "wuauserv" start=auto
    net start wuauserv
    goto end
    net stop wuauserv
    sc config "wuauserv" start=disabled
    goto end

    This is useful for when you administrate a server and are not on it a lot (so you don't get surprised by sudden update installs.

    2: postpone after an update. If you work behind the computer on a daily basis, with the creators update, you can set the active hours fairly large (from 7:00 till 2:00 or something alike). Windows will install the updates as usual, but when it is done it will wait with the reboot until outside of these hours. It will give you a notification telling you that it will reboot later today. When you see this message, you can postpone the reboot for upto a week of time. The next day, you can postpone for another extra day, and you can keep doing this for as many times as you want.

    So if you postpone it for a week, then 5 days later, you can again postpone it for a week, making it 5+7=12 days.

    Alternatively, you can choose to disable the windows update service when this message comes up, then kill the windows update process to stop the automatic reboot. If you decide to go this route, you can simply stop the windows update service (cmd as admin: net stop wuauserv) Next restart, it will automatically start the service again.