Windows can block apps from changing important folders, but there’s a catch

On Windows, a specific built-in setting can stop unfamiliar apps from modifying your personal files. This is a valuable security feature because that’s how ransomware operates. However, this same feature may block certain apps you trust.

After using it for a while, I know where it helps and where it gets in the way. You can avoid the frustration while keeping the protection of this feature.

Controlled Folder Access

The ransomware protection most PCs never switch on

Controlled Folder Access can instantly deny an app access when it tries to change or delete a file in a protected folder. By withholding write access from the app, Controlled Folder Access helps ensure the file remains untouched.

On Windows, the Documents, Pictures, Videos, Music, and Favorites folders all fall under its protection, but you may add other folders to this list. I personally include my work folder and sometimes a second drive.

However, it’s impossible to remove this protection from the default folders it covers. Even if you redirect one of these folders, for instance the Documents folder backed up through OneDrive, the protection follows it to this new location.

The mechanism is simple. Windows Defender assesses how common and reputable an app is to decide whether to allow it to make changes. Most apps you use daily are allowed without notice, but you can’t check in advance whether a particular app will be allowed because Windows doesn’t provide a list of automatically trusted apps.

Controlled Folder Access is an optional Microsoft Defender feature that is off by default. To check it out, open Windows Security and navigate to Virus & threat protection > Manage ransomware protection.

You may not have the Manage ransomware protection option if Defender isn’t your active antivirus or if Defender’s real-time protection isn’t enabled.

Legitimate apps get blocked too

Windows judges reputation, not intent

Windows Security pop-up Android DeX

The way Windows evaluates apps can make a harmless app look no different from ransomware. Both can potentially change files in your personal folders. Saving a file and encrypting another both involve modifying files, and the OS doesn’t read the intent.

Windows may flag an app as suspicious simply because it hasn’t seen much of it, putting small utilities, older tools, and anything from a developer with a tiny user base on the receiving end.

The bigger problem is that Windows reports the block inside the app as a vague error. The OS also displays a separate notification in the bottom-right corner of your screen to tell you an app was blocked. It often disappears quickly, and you may not have enough time to read or understand why your app misbehaved. This makes an OS security feature look like an app bug and can lead you to draw misleading conclusions.

What you see

What you’d assume

What’s really happening

“Couldn’t save” or “access denied”

A corrupted file

Windows refused the write, and the app only knows it failed

An export that never finishes

A broken app or a bad update

The write was refused, and the app never gets a clear reason

A game that forgets your progress

A bad save file

Windows refused to let the game write its save

Spotting a blocked app

Windows keeps a record the app doesn’t

Powershell blocked by CFA

A toast notification that says “Unauthorized changes blocked” is short and easy to miss, especially while you’re in the middle of real work. You can find the same event in Block history, inside Manage ransomware protection.

Individual entries contain these three vital details: the app, the time of the block and the protected folder containing the file it tried to change. When you look through Protection history (still within the Block history window), the wording of the matching entry is different: “Protected memory access blocked.” It sounds like a different problem, but it isn’t.

You can quickly confirm the cause by saving to a different unprotected folder. If it works there but fails in the protected folder, you know the cause without having to change a single setting. Alternatively, you may briefly disable the feature and then switch it on later. The only problem is you may forget to re-enable it.

There are two additional options if you’re a power user. Event Viewer logs each block as Event ID 1123, under Microsoft > Windows > Windows Defender > Operational. You may also use PowerShell’s audit mode, Set-MpPreference -EnableControlledFolderAccess AuditMode. It records what would have been blocked without actually blocking it.

The fix and when to allow an app

The fix is simple. Open Windows Security and navigate to Virus & threat protection > Manage ransomware protection > Allow an app through Controlled folder access > Add an allowed app, then restart the app. Doing this allows that app to write to every protected folder.

I reserve this fix for apps that I’ve intentionally installed from official sources, especially if I know why they need to write there. I look at an app’s install location and digital signature for clues, though neither alone proves that it’s safe. Treat a request to turn off protection with extra caution; the installer could be malicious.

I also don’t allow PowerShell or other script tools. Allowing these script engines creates the possibility that scripts could use the exception to write to your protected folders.

If you have irreplaceable files and use a fairly standard set of apps, Controlled Folder Access may suit you. However, if you run a lot of niche tools, you may spend a great deal of time allowing apps one by one.

Source link

Leave a Reply

Your email address will not be published. Required fields are marked *