Ransomware—malicious software that locks access to your files until you pay the attackers—has plagued PC users and businesses for years. With the risk of losing irreplaceable documents, family photos, or critical data, proactive protection is essential. Since Windows 10, Microsoft has integrated powerful ransomware defenses into Windows Security, helping safeguard your system effectively.
Windows offers two key layers of ransomware defense. First, real-time malware scans (enabled by default) prevent infections. However, if ransomware slips through, these scans alone can't protect your files.
The second layer, Controlled Folder Access, must be enabled manually. It restricts changes to protected folders to trusted apps only, blocking ransomware from encrypting files. Note: While highly effective, it may occasionally block legitimate apps, requiring minor troubleshooting—a trade-off for enhanced security I've encountered during testing.
Access Windows Security via the Start menu search or Settings > Privacy & Security > Windows Security.

Go to "Virus & threat protection" and select "Manage ransomware protection."

Toggle on "Controlled folder access" to shield Documents, Pictures, Videos, and Music folders from untrusted apps.

Once enabled, manage settings via "Block history," "Protected folders," and "Allow an app through controlled folder access." By default, only Microsoft-approved apps can modify protected folders.
Add custom folders or allow specific apps as needed.

Microsoft deems certain apps "friendly," but others may trigger blocks. Check "Block history" for errors like "file not found" when saving—a common issue I've seen. It lists blocked apps and targeted folders.


Protect extras like Desktop: Select "Protected folders" > "+ Add a protected folder."

Choose the folder and select it. Remove custom ones via the same screen.

On the Ransomware protection page, choose "Allow an app through controlled folder access" > "+ Add an allowed app."
Select from "Recently blocked apps" and add with the + button.


This is typically a one-time fix per app. Disable protection cautiously if you're at high risk without backups.
Treat Windows protection as a safety net. Combine it with these expert-recommended practices for comprehensive defense.
Ransomware spreads via phishing emails, outdated software exploits, or fake downloads. Verify file extensions (right-click > Properties); avoid .exe or .msi disguised as docs. Microsoft's guide highlights common infection vectors like malicious links or attachments.
Ensure Windows, browsers, and apps have the latest patches. Check via Settings > Windows Update or Microsoft Store > Library > Get updates.
No defense is foolproof. Back up files locally and to the cloud to recover from attacks, hardware failure, or loss.
Act quickly:
Run a full Windows Security scan or try Malwarebytes (free for personal use). If unsuccessful, reset your PC or seek professional help. Restore from clean backups only after verification.