You leave your PC or Windows VPS running overnight: a copy job, a game server or an open RDP session. In the morning everything is closed and Windows greets you with "Good morning", because it installed an update and restarted itself. Here is what we tried on our own Windows 11 Pro machine, what did not help and what did. We have now been watching the fix for six weeks.
1. How we found out who restarted the machine
Windows logs every restart in the System log as event 1074. Open PowerShell and run:Code: Select all
Get-WinEvent -FilterHashtable @{LogName='System'; Id=1074} -MaxEvents 10 | Format-List TimeCreated, MessageCode: Select all
16.10.2026 03:16 C:\Windows\uus\AMD64\MoUsoCoreWorker.exe ... on behalf of user NT AUTHORITY\SYSTEM- MoUsoCoreWorker.exe on behalf of SYSTEM: Windows Update restarted on its own, nobody clicked anything.
- MoNotificationUx.exe on behalf of your user: you clicked "Restart now" in the update notification.
- TrustedInstaller.exe: finishes the installation right after one of the two restarts above. It is not the cause by itself.
2. What did NOT help: NoAutoRebootWithLoggedOnUsers
Almost every article on the internet recommends the setting "No auto-restart with logged on users" (in the registry,NoAutoRebootWithLoggedOnUsers = 1). The promise is that Windows will not restart while a user is signed in.We had it enabled, the user was signed in, and the machine still restarted at 03:16. The reason is that this setting belongs to the old "install on a schedule" mode. The newer update engine in Windows 10 and 11 (MoUsoCoreWorker) in practice ignores it when updates are set to install automatically.
3. What worked: "download, but notify for install"
The fix is to let Windows download updates on its own but not install them until you say so. If nothing has been installed, there is nothing to restart for.Windows 11/10 Pro, Enterprise and Server: via Group Policy
- Win+R →
gpedit.msc - Computer Configuration → Administrative Templates → Windows Components → Windows Update → Manage end user experience
- Open Configure Automatic Updates → Enabled → choose 3 – Auto download and notify for install → OK
Code: Select all
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU'
New-Item -Path $k -Force | Out-Null
Set-ItemProperty -Path $k -Name NoAutoUpdate -Value 0 -Type DWord
Set-ItemProperty -Path $k -Name AUOptions -Value 3 -Type DWordCode: Select all
Get-ItemProperty 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' | Select AUOptions, NoAutoUpdateAUOptions : 3. Settings → Windows Update will say "Some settings are managed by your organization". That is normal and means the policy is active.Windows Server 2019/2022/2025 (for example a Windows VPS): the easiest way is
sconfig → Update setting → DownloadOnly. It is the same setting 3.4. The result after six weeks
The setting has been on our machine since 16 October 2026. Since then the log shows three update restarts, and all three come from MoNotificationUx.exe on behalf of the user (29 Oct, 13 Nov and 20 Nov). In other words, we restarted when it suited us. There is not a single MoUsoCoreWorker restart on behalf of SYSTEM, and the night-time restarts stopped completely.5. What we do NOT recommend
- Disabling the Windows Update service (
wuauserv→ Disabled). Windows has a separate service (Windows Update Medic) that turns it back on. You also lose the security updates. - Relying only on "Active hours". It helps, but covers at most 18 hours. If the machine runs around the clock, the restart just moves to the other hours.
- Deleting updates or using "tweaker" tools. They break more than they fix.
6. Do not forget to install the updates
With this setting Windows only downloads updates. You install them when you decide. Set a weekly reminder: Settings → Windows Update → Install → restart at a convenient moment. On a server that is exposed to the internet (especially with RDP open), do not leave updates for months. See why in 28,000 login attempts in 4 days.To put everything back the way it was:
Code: Select all
Remove-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' -Name AUOptions, NoAutoUpdateRunning a Windows VPS with us and do not want night-time restarts? The setting above works on Windows Server too. If you have questions, post them here on the forum.