Fix Windows 10 “Error Applying Security” Quickly
In this article
Yes—you can resolve the Windows 10 “Error applying security” message by resetting the Windows Update components, clearing corrupted cache files, and running system integrity checks. The steps below work on any Windows 10 edition as long as you have administrator rights and an active internet connection.
What You'll Need
- Administrator access to the computer
- Reliable internet connection
- Basic familiarity with Command Prompt or PowerShell
- A USB drive (optional, for creating a backup or recovery media)
Step-by-Step
- Restart the PC. A simple reboot often clears transient update locks that cause the error. Click Start > Power > Restart and wait for the system to come back online.
- Run the built‑in Windows Update troubleshooter. Open Settings > Update & Security > Troubleshoot > Additional troubleshooters and select Windows Update. Click Run the troubleshooter and follow any prompts. The tool will automatically detect and fix common configuration problems.
-
Stop the Windows Update services. Press Win + X, choose Windows Terminal (Admin) (or Command Prompt), and type the following commands, pressing Enter after each line:
net stop wuauserv net stop cryptsvc net stop bits net stop msiserver
These commands stop the Update service, Cryptographic service, Background Intelligent Transfer Service, and the MSI Installer service, preventing files from being in use while you clean them. -
Rename the SoftwareDistribution and catroot2 folders. Still in the elevated terminal, run:
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old ren C:\Windows\System32\catroot2 catroot2.old
Renaming forces Windows to recreate fresh, uncorrupted copies the next time it checks for updates. -
Reset the Windows Update components. Execute the following batch of commands (copy‑paste as a block for speed):
net start wuauserv net start cryptsvc net start bits net start msiserver
This restarts the services you stopped earlier, now pointing them at the new folders. - Force a manual update scan. Return to Settings > Update & Security > Windows Update and click Check for updates. Allow the scan to complete; any pending security patches should now download without triggering the error.
-
Run System File Checker (SFC) and DISM. Corrupted system files can also cause the security‑apply failure. In the elevated terminal, type:
sfc /scannow
Wait for the scan to finish (it may take 10‑15 minutes). If SFC reports unrepaired files, run the Deployment Image Servicing and Management tool:DISM /Online /Cleanup-Image /RestoreHealth
This command contacts Windows Update servers to replace damaged components. - Create a restore point (optional but recommended). Open Control Panel > System > System protection, select your system drive, click Create, and give the point a descriptive name. This gives you a safety net before you apply any further updates.
- Install the pending security update manually (if needed). Visit the Microsoft Update Catalog (https://www.catalog.update.microsoft.com) on another device, search for the KB number shown in the error details, download the appropriate .msu file, and double‑click it to install.
- Reboot once more. After all commands have run and any manual updates are installed, restart the computer again. Verify the error no longer appears by opening Settings > Update & Security > Windows Update and confirming the status reads "Your device is up to date."
Common Mistakes
- Skipping the service‑stop step – deleting the SoftwareDistribution folder while the service is running can leave orphaned files and cause further errors.
- Renaming the wrong folder – only the two folders mentioned above should be renamed; altering other system directories can break Windows Update entirely.
- Running the commands without administrator rights – the terminal must be launched with Run as administrator or the commands will fail silently.
- Closing the Command Prompt before the SFC/DISM scans finish – these scans need to run to completion to repair corrupted files.
- Ignoring the “Check for updates” step after resetting – Windows will not automatically re‑download the patches unless you trigger a new scan.
Tips
- Use PowerShell instead of Command Prompt if you prefer; the same commands work, just prepend
Start-Processfor service restarts. - Before modifying any system folder, create a system restore point as described in step 8. This makes rollback painless if something goes wrong.
- If you have limited bandwidth, select Advanced options > Delivery Optimization and enable “Allow downloads from other PCs” to speed up patch acquisition.
- Keep a USB stick with the Windows 10 Media Creation Tool handy. In rare cases the update components are beyond repair and a repair‑install (in‑place upgrade) is the safest route.
- Check the Windows Update service startup type: it should be set to Automatic (Delayed Start). You can verify this in services.msc.
Troubleshooting
If the error persists after completing the steps above, follow this escalation path:
- Verify the Windows Update service status. Open services.msc, locate Windows Update, and ensure the Startup type is Automatic (Delayed Start). If it shows Disabled, change it, click Apply, then Start the service.
- Check the event logs. Press Win + X → Event Viewer → Windows Logs > System. Look for entries with source WindowsUpdateClient that correspond to the time you received the error. The details often include a specific error code (e.g., 0x80070422) that can guide further fixes.
- Reset the network stack. Corrupted network settings can prevent the update client from reaching Microsoft servers. Run these commands in an elevated terminal:
netsh winsock reset netsh int ip reset
Reboot afterwards. - Use the Media Creation Tool for an in‑place upgrade. Download the tool from Microsoft, choose “Upgrade this PC now,” and select the option to keep personal files and apps. This process rewrites the OS components while preserving data, effectively fixing deeply corrupted update modules.
- Contact Microsoft Support. If none of the above resolves the issue, gather the following before reaching out: the exact error message, any error codes from the Event Viewer, and a screenshot of the Windows Update page. Support agents can request log files (e.g., WindowsUpdate.log) that pinpoint the failure.
Frequently Asked Questions
Why does the “Error applying security” message appear only after a specific update?
Some security updates replace core system files that are currently in use. If the files cannot be replaced because a service is locked, Windows logs the error. Resetting the update components forces Windows to retry the replacement on the next reboot.
Can I disable Windows Update to avoid this error?
Disabling Windows Update is not recommended because it leaves the system vulnerable. Instead, use the built‑in pause feature (Settings > Update & Security > Windows Update > Pause updates for 7 days) while you troubleshoot.
Will clearing the SoftwareDistribution folder delete my installed updates?
No. Renaming or deleting the folder only removes the temporary cache that stores downloaded update files. Already installed updates remain intact.
Do I need to reinstall any drivers after fixing the error?
Typically not. The error is unrelated to device drivers. However, if you notice hardware malfunction after the fix, run Device Manager > Scan for hardware changes or reinstall the specific driver from the manufacturer’s website.
Is a clean install the only guaranteed solution?
A clean install will certainly eliminate the error, but the step‑by‑step method above resolves the problem in the majority of cases without data loss. Use a clean install only as a last resort.
How can I prevent this error from happening again?
Regularly install Windows updates, keep the system fully patched, and run the Windows Update troubleshooter after major version upgrades. Also, avoid third‑party “optimisation” tools that delete Windows system folders.