Microsoft recommends backing up the operating system disk before these steps. Restart and try Windows Update after each step, and stop as soon as it works. Run all commands in Command Prompt as administrator. If Windows cannot start, see the startup guide.
Work through these checks
0 of 7 complete01Check whether the PC is managed
Microsoft lists group policy and management agents that restrict system folders as a cause, which only your IT department can change.
- Open Settings > Accounts > Access work or school. If an organization is connected, the PC may be managed.
- On a work or school PC, contact IT instead of changing permissions.
You know whether you may change system settings.
If it does not helpOn a personal PC, continue with step 2.
02Reset folder permissions with icacls
Microsoft's first resolution step resets the permissions on the folders Windows Update uses.
- Search for cmd, right-click Command Prompt and choose Run as administrator.
- Run icacls "%windir%\WinSxS" /reset /t /c /q
- Run icacls "%windir%\SoftwareDistribution" /reset /t /c /q, then restart and try the update.
Type the commands exactly; they reset permissions to inherited defaults.
The update installs.
If it does not helpThe WinSxS command can take several minutes. If the error remains, continue with step 3.
03Restore TrustedInstaller as owner of WinSxS
Microsoft lists missing TrustedInstaller permissions on WinSxS as a cause.
- In Command Prompt (Admin), run icacls "%windir%\WinSxS" /setowner "NT SERVICE\TrustedInstaller" /t /c /q
- Restart and try the update.
The update installs.
If it does not helpIf not, reset the update components in step 4.
04Reset the Windows Update components
Microsoft's next step renames the update download folder and catalog database so Windows recreates them.
- In Command Prompt (Admin), run net stop wuauserv, net stop bits and net stop cryptSvc.
- Run ren %windir%\SoftwareDistribution SoftwareDistribution.old and ren %windir%\System32\catroot2 catroot2.old.
- Run net start cryptSvc, net start bits and net start wuauserv, then check for updates.
Use Command Prompt, not PowerShell, for these commands.
Windows Update downloads the update again and installs it.
If it does not helpThe update history may look empty afterwards; installed updates are not affected.
05Repair system files with DISM and SFC
Microsoft's steps 4 and 5 repair the component store and system files.
- Run DISM /Online /Cleanup-Image /RestoreHealth and wait for it to finish.
- Run sfc /scannow, then restart and try the update.
DISM and SFC complete and the update installs.
If it does not helpIf DISM fails because it cannot get files, see the 0x800F081F guide on this site.
06Check antivirus and filter drivers
Microsoft lists third-party antivirus or security tools locking update files as a cause.
- Temporarily turn off real-time protection in your third-party antivirus.
- In Command Prompt (Admin), run fltmc to list file system filter drivers. Non-Microsoft entries usually belong to antivirus, backup or encryption software.
- Uninstall or pause that software, restart and try the update.
Turn protection back on afterwards. Microsoft Defender takes over while another antivirus is removed.
The update installs without the third-party software interfering.
If it does not helpMicrosoft also describes unloading individual filter drivers with fltmc unload; uninstalling the program is safer for most users.
07Repair Windows if it still fails
An in-place upgrade replaces system files and resets their permissions while keeping your data.
- Download the Windows ISO for your version from Microsoft and mount it.
- Run setup.exe and choose to keep personal files and apps.
Back up important files before starting.
Windows is repaired and updates install.
If it does not helpRun Windows Update afterwards.
Possible causes
- Wrong permissions on the WinSxS or SoftwareDistribution folders
- Third-party antivirus or security software locking update files
- Damaged Windows Update components
- The SYSTEM account lacking full control of the Windows folder
- Group policy or management software restricting system folders
Was this helpful?
Your progress is saved on this device.