Forum Discussion

LukeDavis's avatar
LukeDavis
Silver Contributor
Jul 30, 2026

The Windows 11 25H2 update failed, and the computer automatically restarts when I shut it down.

I encountered error code 0x80070002 while updating to Windows 11 25H2. I’ve tried various commands and fixes I found online, but none of them worked. Now, my computer automatically restarts every time I shut it down, and I can only shut it down by holding down the Shift key. How can I fix this?

1 Reply

  • The failed 25H2 installation and restart-after-shutdown symptom may be related, but 0x80070002 alone does not identify one cause. Because holding Shift permits a full shutdown, test the Fast Startup path separately. First open Settings > Windows Update > Update history and record the complete error. Run the Windows Update troubleshooter, restart, disconnect USB storage or docks, and retry. Next, open Command Prompt as administrator; run DISM.exe /Online /Cleanup-image /Restorehealth, then sfc /scannow. If the update still fails, perform a clean boot and retry once. For shutdown testing, run shutdown /s /t 0. If that powers off correctly, temporarily turn off Fast Startup under Control Panel > Power Options > Choose what the power buttons do, then test normally. If both symptoms remain, use Settings > System > Recovery > Fix problems using Windows Update > Reinstall now; it repairs Windows components while preserving apps, files, and settings.