For error 0x8007001f, the documented fixes are:
- Disconnect external devices during the install.
Remove nonessential hardware such as USB drives, external hard drives, printers, scanners, speakers, headphones, and undock a laptop if it is docked.
- Update Windows and drivers first.
Install all important updates, including hardware driver updates, before retrying the repair update.
- Temporarily uninstall non-Microsoft antivirus or other third-party security software.
This error is commonly associated with device or driver issues, and security software can also interfere with installation. Make sure installation media and any required product keys are available before uninstalling software.
- Run the Windows Update troubleshooter.
Go to Start > Settings > System > Troubleshoot > Other troubleshooters > Windows Update > Run.
- Repair system files.
Open Command Prompt as administrator and run:
-
DISM.exe /Online /Cleanup-image /Restorehealth
-
sfc /scannow
Retry the update after both complete successfully.
- Reset Windows Update components.
This is an advanced step and requires administrator permissions. In an elevated Command Prompt, run these commands one at a time:
-
net stop bits
-
net stop wuauserv
-
ren %systemroot%\softwaredistribution softwaredistribution.bak
-
ren %systemroot%\system32\catroot2 catroot2.bak
-
net start bits
-
net start wuauserv
Then restart the PC.
- Try the install with a minimal software load.
Perform a clean restart into Windows to reduce software conflicts, then retry the repair install.
- If the repair update repeatedly fails, use a clean installation tool or in-place reinstall path.
The documented Windows troubleshooting guidance includes using the Windows 11 software download page for a clean installation tool. This is a more invasive option, so read the notes carefully before using it.
Because this has already failed three times overnight, the most practical order is:
- disconnect external hardware
- remove third-party antivirus/security software
- run the Windows Update troubleshooter
- run DISM and SFC
- reset Windows Update components
- retry after a clean restart
Risk note: resetting update components and using DISM/SFC require administrator access. A clean installation path is more disruptive than standard update troubleshooting, so it should be treated as a later step.