Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9738

Windows 11 seems to have disabled all ways to get around Auto Update Restarts. Is there a workaround?

$
0
0

I run Matlab simulations that sometimes take weeks to finish and when Windows restarts I lose all my work so I really need a way to stop auto restarts.

Windows 11 seems to have disabled all ways to get around Auto Update Restarts. Is there a still a workaround?

It used to be possible to set NoAutoRebootWithLoggedOnUsers in:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU

if you also set AUOptions to 4 in the same location but this does not work for me now.

I was thinking that I could run a scheduled task that changes my working hours in the registry, say every hour, so that it is never not a working hour. Will this work?

for /f "tokens=1 delims=:" %%a in ('time/t') do set currentHour=%%aif %currentHour% gtr 17 goto after6pmif %currentHour% gtr 5 goto after6amset /a startHour = %currentHour%+18set /a endHour = %currentHour%+6goto SetActiveHours:after6pmset /a startHour = %currentHour%-6set /a endHour = %currentHour%-18goto SetActiveHours:after6amset /a startHour = %currentHour%-6set /a endHour = %currentHour%+6:SetActiveHoursset "activeHours=%startHour%,%endHour%" 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 

Viewing all articles
Browse latest Browse all 9738