Share via

I have programs that are trying to manage files and I can folder access restrictions

Herb Gingold 0 Reputation points
2026-03-11T18:16:05.2+00:00

I am using a mcu development package and it is trying to access a folder on my new Win11 machine, it is all over the web, but none of the suggestions work in the slightest.

I need help now please

Windows for home | Windows 11 | Files, folders, and storage
0 comments No comments

3 answers

Sort by: Most helpful
  1. Hendrix-V 14,940 Reputation points Microsoft External Staff Moderator
    2026-03-12T06:05:53.8+00:00

    Hi Herb Gingold,

    On Windows 11, built‑in security features can restrict applications from writing to protected folders (such as Documents, Desktop, or Downloads). Development tools, including MCU IDEs and toolchains, often need to create or modify files in these locations, which can lead to access blocks.

    Here are some possible options that you can consider trying to proceed:

    Option 1: Allow the app through security protection

    • Open Windows Security
    • Select Virus & threat protection
    • Choose Manage ransomware protection
    • Select Allow an app through Controlled folder access
    • Add the main executable(s) used by your development tool

    This keeps protection enabled while allowing your tool to work normally.

    Option 2: Move your project folder

    • Place your MCU projects in a non‑protected location, for example: C:\Dev or D:\Projects
    • Avoid working directly from Documents, Desktop, or OneDrive‑synced folders.

    Option 3: Temporarily turn off Controlled Folder Access

    If you need an immediate unblock:

    • Go to Windows Security
    • Virus & threat protection
    • Manage ransomware protection
    • Turn Controlled folder access off

    You can turn it back on later after adding the necessary exclusions.

    Once configured, your tools should run smoothly without repeated interruptions. Let me know if you need further assistance, feel free to ask me by clicking "Add Comment" or "Add Answer" if you cannot add comment so your response will be visible. Thanks for your effort.


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


  2. Herb Gingold 0 Reputation points
    2026-03-11T18:48:02.6633333+00:00

    What do I have to do to get in touch with someone at Microsoft that can fix this nightmare!?!?

    Was this answer helpful?

    0 comments No comments

  3. AI answer

    2026-03-11T18:16:25.2433333+00:00

    On Windows 11 there are three main places that can block a development tool from accessing folders:

    1. Windows file system privacy settings (per‑app access)
    2. Controlled folder access (ransomware protection)
    3. Standard NTFS permissions/UAC elevation

    Try these in order.

    1. Check Windows file system access settings

    This affects Store/UWP‑style apps, but is quick to verify:

    1. Select Start > Settings > Privacy & security > File system.
    2. Make sure Let apps access your file system is turned On.
    3. 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.

    1. 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.

    1. Open Windows Security (search for “Windows Security” from Start).
    2. Go to Virus & threat protection.
    3. Under Ransomware protection, select Manage ransomware protection.
    4. 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:
        1. Select Allow an app through Controlled folder access (or use the shortcut windowsdefender://allowappthroughfolder/).
        2. Add the MCU development tool’s main executable as an allowed app.
    5. 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.

    1. Check NTFS permissions and UAC

    If the tool still cannot access the folder, it may be a standard permissions issue:

    1. Right‑click the target folder > Properties > Security.
    2. Ensure the current user account has Read and Write permissions.
    3. 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):

    1. Close the tool.
    2. Right‑click its shortcut or EXE > Run as administrator.
    3. 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.

    1. 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:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.