FacebookTwitterLinkedIn

How to Enable Controlled Folder Access on Windows 10?

How to Enable and Use Controlled Folder Access on Windows 10 Creators Update?

Ransomware is a type of malware that prevents users from accessing their systems. If you have updated Windows 10 to Creators Update, have not used Controlled Folder Access, and have not yet been affected by ransomware, you can start using it immediately. In this article, we show you how.

How to Enable Controlled Folder Access on Windows 10

Ransomware usually locks the system screen or files and demands a ransom payment. It can encrypt specific files on your system and request you to pay the ransom to receive a decryption key.

Ransomware can be downloaded to your system secretly if you visit untrusted, malicious, or compromised websites. Some ransomware can get onto your PC via email pam, malicious advertisements, infected apps, etc.

There are ways to increase protection against ransomware. Back up your devices and update your antivirus software frequently. Avoid clicking suspicious links and opening email attachments from unknown users.

How Does Controlled Folder Access Work?

By using Windows 10 with Creators Update, you will be safer since Microsoft has released a new feature called "Controlled Folder Access." This feature prevents unauthorized access to files and folders by locking them and allowing access only to authorized applications.

The Controlled Folder Access feature protects your files in real-time so that ransomware and other unwanted, unauthorized software cannot access them.

Note that the Controlled Folder Access feature requires you to have Windows Defender real-time protection enabled and not have third-party antivirus programs.

Video Showing How to Enable And Use Controlled Folder Access Feature on Windows 10:

[Back to Top]

Table of Contents:

How To Enable Controlled Folder Access In Windows Defender Security Center

Open Windows Defender Security Center. You can access it by typing "defender" in Search and clicking the "Windows Defender Security Center" result.

how to enable controlled folder access in windows defender security center step 1

In the Security Center window, click "Virus & threat protection."

how to enable controlled folder access in windows defender security center step 2

Then, click "Virus & threat protection settings."

how to enable controlled folder access in windows defender security center step 3

In the Virus & threat protection settings window, scroll down to find "Controlled Folder Access," toggle the switch to turn it on. You will be asked if you want to allow this app to make changes to your device. Click "Yes."

how to enable controlled folder access in windows defender security center step 4

This feature will now be turned on and protect your files and folders from unauthorized access by ransomware and other malicious programs. As mentioned before, this feature protects common files and folders by default, but you may wish to add more files and folders to the protection list.

[Back to Table of Contents]

How To Add Protected Folders

If you want to protect more folders with this feature, click "Protected Folders" below the switch.

how to add protected folders step 1

In the Protected folders window, you will see the list of files currently protected and an "Add a protection folder" icon. Click the icon and then navigate through your Windows system to find the folder you want to add. You can add as many folders as you wish.

how to add protected folders step 2

If you want to remove a folder previously added, click the folder and select "Remove."

how to remove protected folder

[Back to Table of Contents]

How To Allow Apps Through Controlled Folder Access

This feature usually knows which apps are trustworthy enough to access your files. There might, however, be some apps that you know are trustworthy, despite being deemed unfriendly by this feature. In this case, you need to assign access to your files to those apps manually. To allow apps through the Controlled folder access feature, click "Allow an app through Controlled folder access" under the "On/Off" switch.

how to allow apps through controlled folder access step 1

Click "Add an allowed app" and navigate through your Windows system to find the app you want to add as an 'allowed app.'

how to allow apps through controlled folder access step 2

If you no longer want to allow a certain app to access your files or folders, just select the app and click "Remove."

how to remove allowed apps through controlled folder access

[Back to Table of Contents]

How To Enable And Configure Controlled Folder Access Feature Using PowerShell

You can also enable and disable this feature using PowerShell commands, add or remove folders, and allow specific apps to access your files. To open PowerShell, type "powershell" in Search and right-click on the "PowerShell" result. In the drop-down menu, select "Run as administrator."

how to enable and configure controlled folder access using powershelgl step 1

The PowerShell window will appear. To enable the Control folder access feature, type the following command: "Set-MpPreference -EnableControlledFolderAccess Enabled" and press Enter on your keyboard. You can disable it using the same command but changing "Enabled" to "Disabled" at the end of the command.

how to enable and configure controlled folder access using powershelgl step 2

If you want to add a file or folder to be protected, type in this command with the file or folder location at the end (in our example, "D:\folder\files\"):
Add-MpPreference -ControlledFolderAccessProtectedFolders "D:\folder\files"

how to enable and configure controlled folder access using powershelgl step 3

If you want to remove a file or folder, type in this command and with its location at the end:
Disable-MpPreference -ControlledFolderAccessProtectedFolders "D:\folder\files"

how to enable and configure controlled folder access using powershelgl step 4

If you want a specific app that you trust to access your files and folders, type this command and indicate its location at the end: Add-MpPreference -ControlledFolderAccessAllowedApplications "D:\folder\files\app\app.exe"

how to enable and configure controlled folder access using powershelgl step 5

If you want to remove a specific app, type this command and indicate its location at the end: Remove-MpPreference -ControlledFolderAccessAllowedApplications "D:\folder\files\app\app.exe"

how to enable and configure controlled folder access using powershelgl step 6

[Back to Top]

▼ Show Discussion

About the author:

Rimvydas Iliavicius

Rimvydas is a researcher with over four years of experience in the cybersecurity industry. He attended Kaunas University of Technology and graduated with a Master's degree in Translation and Localization of Technical texts. His interests in computers and technology led him to become a versatile author in the IT industry. At PCrisk, he's responsible for writing in-depth how-to articles for Microsoft Windows. Contact Rimvydas Iliavicius.

Our guides are free. However, if you want to support us you can send us a donation.

About PCrisk

PCrisk is a cyber security portal, informing Internet users about the latest digital threats. Our content is provided by security experts and professional malware researchers. Read more about us.

Malware activity

Global malware activity level today:

Medium threat activity

Increased attack rate of infections detected within the last 24 hours.