On Windows 11 there are three main places that can block a development tool from accessing folders:
- Windows file system privacy settings (per‑app access)
- Controlled folder access (ransomware protection)
- Standard NTFS permissions/UAC elevation
Try these in order.
- Check Windows file system access settings
This affects Store/UWP‑style apps, but is quick to verify:
- Select Start > Settings > Privacy & security > File system.
- Make sure Let apps access your file system is turned On.
- In the list below, turn On access for the specific app if it appears there.
If the development package is a classic desktop program (installed from an EXE/MSI, ZIP, etc.), it might not appear in this list and won’t be controlled by this setting. In that case, move on to the next steps.
- Check Controlled folder access (Defender ransomware protection)
If the tool is trying to write to protected folders (like Documents, Desktop, Pictures, Videos, etc.), Microsoft Defender’s Controlled folder access can silently block it.
- Open Windows Security (search for “Windows Security” from Start).
- Go to Virus & threat protection.
- Under Ransomware protection, select Manage ransomware protection.
- Check if Controlled folder access is On.
- If testing, temporarily turn it Off and retry the tool.
- If it works with it off, turn it back On and then:
- Select Allow an app through Controlled folder access (or use the shortcut
windowsdefender://allowappthroughfolder/).
- Add the MCU development tool’s main executable as an allowed app.
- If needed, select Protected folders (or
windowsdefender://protectedfolders/) and either:
- Add the folder the tool must access, or
- Move the project to a non‑protected location.
Reviewing events:
If the tool is being blocked, you can confirm via Event Viewer using the controlled folder access custom view described in the documentation. Look for event IDs like 1123 (blocked) or 1127/1128.
- Check NTFS permissions and UAC
If the tool still cannot access the folder, it may be a standard permissions issue:
- Right‑click the target folder > Properties > Security.
- Ensure the current user account has Read and Write permissions.
- If not, add the necessary permissions.
If the tool needs admin rights to manage files (e.g., writing under C:\Program Files or system locations):
- Close the tool.
- Right‑click its shortcut or EXE > Run as administrator.
- Retry the operation.
If UAC is disabled or permissions have been changed in unusual ways, some operations may fail or behave unexpectedly. Keeping UAC enabled and running the tool elevated when needed is recommended.
- For UWP/Store‑style tools (if applicable)
If the MCU tool is a UWP app, it may need explicit capabilities or user‑picked folders:
- The app can use file/folder pickers so the user grants access.
- It can retain access via the
FutureAccessList or MostRecentlyUsedList.
If the app is launched via an AppExecutionAlias, it has file‑system permissions from the directory it’s launched from and downward.
If after these steps the tool still cannot access the folder, note exactly which folder path is involved and any Defender/Windows Security notifications, then adjust Controlled folder access and NTFS permissions specifically for that path and executable.
References: