Skip to main content

Disable app access to your files

Apply Now
Works with Windows 10 and 11Works with Windows Vista, XP, 7, 8, 10, 11, and Windows Server 2008 or newer.
  • Windows onlyThis script improves your privacy on Windows
  • Multiple actionsThis page belongs to a category, containing some changes with similar goal.
  • Impact: Minimum

    System Functionality / Data Loss Risk: Low

    This action improves privacy with minimal impact when you run the recommended script.

  • Batch (batchfile)These changes use Windows system commands to update your settings.
  • 5 scripts
  • No subcategories
  • Administrator rights requiredThis script requires privilege access to do the system changes
  • Fully reversible

    You can fully restore this action (revert back to the original behavior) using this website.

    The restore/revert methods provided here can help you fix issues.

Overview

This category limits the access of Windows apps to various user-specific folders and other file systems. It enhances privacy by restricting apps from accessing and manipulating files without explicit user permission.

Caution

Disabling app access may affect the functionality of certain Microsoft Store, third-party, and system applications.

Safe for General Use
All actions in this script is recommended for all users. This is recommended for all users to improve without any noticeable impact on the system functionality.

Apply Now

Choose one of two ways to apply:

Download script

Download and run the script directly
  • No app needed
  • Offline usage
  • Easy-to-apply
  • Free
  • Open-source

NormalEveryday Privacy (Enterprise-Grade)

  • Recommended for all
  • Safe for daily use
  • No impact on system stability

Read more about Normal and other protection levels

Help

How to apply or restore "Disable app access to your files" using script

  • ≈ 2 min to complete
  • Tools: Web Browser
  • Difficulty: Simple
  • ≈ 5 instructions
  1. 1

    Download

    Download the script file by clicking on the   Apply protection  button above.
    Use   Undo protection button above to restore changes.
  2. 2

    Keep the file

    If warned by your browser, keep the file.
  3. 3

    Open

    Open the downloaded file.
  4. 4

    Exit

    Once it's done, press any key to exit the window.
  5. 5

    Restart

    Restart your computer for all changes to take effect.

Apply with privacy.sexy

Guided, automated application with safety checks
  • Recommended for most users
  • Includes safety checks
  • Shows the code
  • Free
  • Open-source
  • Popular
  • Offline/Online usage
Open privacy.sexy
Help

How to apply or restore "Disable app access to your files" using privacy.sexy

  • ≈ 3 min to complete
  • Tools: privacy.sexy
  • Difficulty: Simple
  • ≈ 4 instructions
privacy.sexy is free and open-source application that lets securely apply this action easily with more advanced options.
  1. 1

    Open or download

    Open or download the desktop application
  2. 2

    Choose script

    1. Search for the category name: Disable app access to your files
    2. Check the category by clicking on the checkbox of the category.
  3. 3

    Run

    Click on ▶️ Run button at the bottom of the page.

    This button only appears on desktop version (recommended). On browser, use 💾 Save button.

Explore This Guide

  • 5 Privacy settings

Choose what to protect based on your needs:

Click any option to learn more about what it does.

Each change can be applied and reversed individually.

  • Some settings and commands may require technical knowledge to apply correctly.
  • Most users find the Normal protection above sufficient.

Disable app access to "Documents" folder

This script prevents Windows apps from accessing the Documents folder. It restricts app access to document files without user consent. After running this script, apps can still access the files when explicitly permitted. This script enhances your privacy and security by preventing unauthorized app access. This script configures: Privacy settings user interface ("documentsLibrary")

Disable app access to "Pictures" folder

This script prevents Windows apps from accessing the Pictures folder. It restricts app access to photos and images without user consent. After running this script, apps can still access the files when explicitly permitted. This script enhances your privacy and security by preventing unauthorized app access. This script configures: Privacy settings user interface ("picturesLibrary")

Disable app access to "Videos" folder

This script prevents Windows apps from accessing the Videos folder. It restricts app access to video files without user consent. After running this script, apps can still access the files when explicitly permitted. This script enhances your privacy and security by preventing unauthorized app access. This script configures: Privacy settings user interface ("videosLibrary")

Disable app access to "Music" folder

This script prevents Windows apps from accessing the Music folder. It restricts app access to audio files without user consent. After running this script, apps can still access the files when explicitly permitted. This script enhances your privacy and security by preventing unauthorized app access. This script configures: Privacy settings user interface ("musicLibrary")

Disable app access to personal files

This script restricts app access to the broader file system. It restricts app access to files that the user has access to without user consent. After running this script, apps can still access the files when explicitly permitted. This script enhances your privacy and security by preventing unauthorized app access. This script configures: Privacy settings user interface ("broadFileSystemAccess")

Similar Guides

Wider Goal

Guides below includes this guide to achieve a wider goal.

See other more general settings that includes this one as one of its actions.

These plans combine multiple privacy settings, including this one, for stronger protection.

This category enhances your privacy by restricting app access to sensitive personal data. These scripts enable you to enforce the principle of least privilege ensu...

About the Creators

These people have authored this documentation and written its scripts:

  • Avatar of undergroundwires. The creator of PrivacyLearn and privacy.sexy. Black and white portrait showing a person wearing a polka dot tie and suit jacket, reflecting the professional expertise behind the privacy protection tools.
    • Certified security professional
    • 7+ years experience securing banks
    • Open-source developer since 2005
    • EU advisor, Public Speaker, Moderator
    • Hundreds across the globe
    • Testers, reviewers, developers
    • Companies, military agencies
    • Community since 2017

Reviewed By

This guide has undergone comprehensive auditing and peer review:
  • Expert review by undergroundwires

    • Verified technical accuracy and editorial standards
    • Assessed system impact and user privacy risks
  • Public review by large community

    • Privacy enthusiasts and professionals peer-reviewed
    • Millions of end-users tested across different environments

History

We continually monitor our guides, their impact and all other privacy options. We update our guides when new information becomes available. On every update, we publicly store who made the change, what has been changed, why the change was made and when the change was made.