How to disable Windows 11 automatic reboots?

Anonymous
2024-02-18T11:19:20+00:00

Hi,

I have browsed this forum but found so far no real solution:

It has happened to my now several times that I was running tasks over extended periods of time only to come back to my PC the next morning to find Windows 11 had done an automatic reboot! So not only the tasks weren't finished, worse, lots of preparatory work was lost!

I don't want Windows to ever automatically reboot after an update. Never. Ever. Period. I want to be informed about updates, that's fine, and I keep Windows 11 up to date, but under no circumstances ever is it acceptable that Windows just shovels an update on my PC and disrupts overnight tasks and REBOOTS(!) my PC all by itself.

So it would be very helpful if somebody could tell me how to disable these automatic update reboots once and for all. I don't want to "pause" Updates (I absolutely want updates, I just want to control myself when the updates are done) and resetting "work hours" is of no use unless I can set it to 24 hours.

Best regards

Nick

Windows for home | Windows 11 | Windows update

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

84 answers

Sort by: Oldest
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Anonymous
    2024-05-16T03:24:15+00:00

    The business I currently contract for selectively applies Microsoft updates to their Windows 10 machines, and reboots when and IF they want to reboot. There is no WAY Microsoft offer this policy to customers.

    I want to know EXACTLY what is being updated. I want to know if its a bug, or an enhancement. I want to know whether or not its security related. If so, there better be an RFC update associated with the change. Otherwise Microsoft sold me a defective product, and I'm entitled to a service level refund. one hundred dollars per fix, per week it was broken.

    Was this answer helpful?

    10+ people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2024-05-16T14:50:09+00:00

    I am testing out disabling modern standby. The user reported his machine yet again rebooted without his knowledge or consent. When I checked the Event Viewer it mentioned being shutdown by modern standby. I found this

    copy and paste this to a command line:

    reg add HKLM\System\CurrentControlSet\Control\Power /v PlatformAoAcOverride /t REG_DWORD /d 0

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2024-05-24T16:02:42+00:00

    Is there really no simple way to tell my Windows machine:

    "Never restart unless I explicitly consent"

    Really very stupid if true. As a lifelong Mac user who has recently switched to windows due to price/performance ratio, this is hilariously dumb.

    I have to go into regedit to edit a setting and that doesn't even work?? LOL! Ever heard of check boxes? I can find like 5000 ways to open the start menu or some other bloatware, but any real settings are SO hidden and convoluted. What they say about windows is true...!

    Was this answer helpful?

    30+ people found this answer helpful.
    0 comments No comments
  5. Anonymous
    2024-05-30T06:12:41+00:00

    Make a batch command file eg. disablereboot.bat, i.e. Open notepad and paste the code below:

    for /f %%i in ('powershell "((get-date).Hour+18) %% 24"') do set startHour=%%i
    for /f %%i in ('powershell "((get-date).Hour+12) %% 24"') do set endHour=%%i
     
    reg add HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings /v ActiveHoursStart /t REG_DWORD /d %startHour% /f 
    reg add HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings /v ActiveHoursEnd /t REG_DWORD /d %endHour% /f 
    

    Save the file anywhere on your computer like C:\MyStuff\disablereboot.bat

    Then use Task Scheduler:

    Press the windows key + R at the same time and in the prompt type:

    taskschd.msc

    and configure to run the code Daily and repeat every hour for 1 day, i.e.:

    in the right panel click Create task

    name it whatever way you want in the General tab

    In the Triggers tab create a new one with the contents below:

    Daily, repeat task every 1 hour for duration at: 1 day

    in Actions click in new with the action Start a program and in the browse locate your previous saved bat file, in this example, C:\MyStuff\disablereboot.bat.

    This will keep changing your working hours so that it is never not a working hour. This way you will never get an auto reboot and you can choose yourself when to reboot.

    Was this answer helpful?

    60+ people found this answer helpful.
    0 comments No comments