How to enable Controlled Folder Access anti-ransomware feature on Windows 10/11

Controlled Folder Access is a feature of Microsoft's Windows Security desktop antivirus application. It prevents ransomware by preventing files in protected folders from being modified. Enabling Controlled Folder Access prevents untrusted applications, malware, or other means from changing files in protected folders.

Controlled Folder Access is an additional security feature in Windows 10 and 11 that some users appreciate. Ransomware is not something to be taken lightly and enabling this feature will keep your system and user files extra safe. Here are 4 ways you can enable Controlled Folder Access in Windows.

How to enable Controlled Folder Access in Windows Security

The Controlled Folder Access setting is located under Ransomware Protection in the Windows Security app. It's easy to find and turn it on/off once you know where it is. Here's how to turn on Controlled Folder Access in the Windows Security app.

1. To open the Windows Security application , double-click its system tray icon.

2. Select the Virus & threat protection tab of Windows Security.

How to enable Controlled Folder Access anti-ransomware feature on Windows 10/11
Ransomware Protection feature

3. Click Manage ransomware protection to go to Controlled Folder Access settings.

How to enable Controlled Folder Access anti-ransomware feature on Windows 10/11
Controlled Folder Access Options

4. Now, turn on the Controlled Folder Access option to enable that feature.

Controlled Folder Access protects the Documents, Videos, Pictures, and Music user folders when enabled. To see a list of protected user folders, click Protected folder. You can add more to the list by clicking the Add protected folder button , selecting a folder, and clicking Select Folder.

How to enable Controlled Folder Access anti-ransomware feature on Windows 10/11
Add protected folder button

How to Enable Controlled Folder Access Using PowerShell

Windows PowerShell provides you with an alternative method to enable and disable Controlled Folder Access by executing commands. You can enable Controlled Folder Access using PowerShell as follows:

1. To activate the file search tool, press Win + S .

2. Type PowerShell in the enabled search utility.

3. Open PowerShell with admin rights by selecting Run as administrator .

4. To enable Controlled Folder Access, type this command text and press Enter :

Set-MpPreference -EnableControlledFolderAccess Enabled
How to enable Controlled Folder Access anti-ransomware feature on Windows 10/11
Command to enable Controlled Folder Access

5. You can disable Controlled Folder Access by executing this command:

Set-MpPreference -EnableControlledFolderAccess Disabled

How to enable Controlled Folder Access with Group Policy Editor

If you have Windows 11 Pro or Enterprise, you can enable Controlled Folder Access using the Group Policy Editor. The Group Policy Editor also includes some additional configuration settings for Controlled Folder Access. Here's how to enable Controlled Folder Access via GPE.

Note : If you are using Windows Home, Group Policy Editor will not appear by default.

1. Open the Windows search tool and type gpedit.msc in it.

2. Select gpedit.msc to display the Group Policy Editor.

3. Click Computer Configuration > Administrative Templates in the left pane of Group Policy Editor.

How to enable Controlled Folder Access anti-ransomware feature on Windows 10/11
Administrative Templates in Group Policy Editor

4. Double-click Windows Components to expand it.

5. Click the arrows to expand Microsoft Defender Antivirus and Microsoft Defender Exploit Guard .

6. Select Controlled Folder Access to view the policy settings for that feature.

7. Then double-click on Configure Controlled folder access to see that setting's window.

How to enable Controlled Folder Access anti-ransomware feature on Windows 10/11
Policy Controlled Folder Access in Group Policy Editor

8. Select Enabled for the Configure Controlled folder access window .

9. Click Block on the drop-down menu to select the strictest CFA mode. However, you can also select the Audit Mode, Block disk notification only , and Audit disk notification only options to allow Controlled Folder Access.

How to enable Controlled Folder Access anti-ransomware feature on Windows 10/11
Configure the guard my folders feature drop-down menu

10. Select Apply in the Configure Controlled folder access window .

11. Click the OK button of the Configure Controlled folder access window .

How to enable Controlled Folder Access from Windows context menu

Alternatively, you can create a context menu shortcut to enable/disable Controlled Folder Access. Then you will be able to access the Turn on Controlled folder access setting from the Windows desktop area. You can add such a CFA option to the right-click menu by setting up and running a registry script as follows:

1. Open Notepad.

2. Then select this script text and press Ctrl + C :

Windows Registry Editor Version 5.00


 ; Created by: Shawn Brink

 ; Created on: July 19th 2018

 ; Tutorial: https://www.tenforums.com/tutorials/114389-add-turn-off-controlled-folder-access-context-menu-windows-10-a.html
 

 [HKEY_CLASSES_ROOT\DesktopBackground\Shell\ControlledFolderAccess]

 "HasLUAShield"=""

 "Icon"="%ProgramFiles%\\Windows Defender\\EppManifest.dll,-101"

 "MUIVerb"="Turn On or Off Control folder access"

 "Position"="Bottom"

 "SubCommands"=""
 

 [HKEY_CLASSES_ROOT\DesktopBackground\Shell\ControlledFolderAccess\shell\001flyout]

 "MUIVerb"="Turn on Control folder access"

 "HasLUAShield"=""

 "Icon"="%ProgramFiles%\\Windows Defender\\EppManifest.dll,-101"


 [HKEY_CLASSES_ROOT\DesktopBackground\Shell\ControlledFolderAccess\shell\001flyout\command]

 @="PowerShell -windowstyle hidden -Command \"Start-Process cmd -ArgumentList '/s,/c,start PowerShell.exe Set-MpPreference -EnableControlledFolderAccess Enabled' -Verb RunAs\""


 [HKEY_CLASSES_ROOT\DesktopBackground\Shell\ControlledFolderAccess\shell\002flyout]

 "MUIVerb"="Turn off Control folder access"

 "HasLUAShield"=""

 "Icon"="%ProgramFiles%\\Windows Defender\\EppManifest.dll,-101"
 

 [HKEY_CLASSES_ROOT\DesktopBackground\Shell\ControlledFolderAccess\shell\002flyout\command]

 @="PowerShell -windowstyle hidden -Command \"Start-Process cmd -ArgumentList '/s,/c,start PowerShell.exe Set-MpPreference -EnableControlledFolderAccess Disabled' -Verb RunAs\""

3. Paste that script into Notepad by clicking on the application's window and pressing Ctrl + V .

How to enable Controlled Folder Access anti-ransomware feature on Windows 10/11
Registry script to access Controlled Folder Access

4. Next, press Ctrl + Shift + S to view Notepad's Save as window .

5. Set the Save as type option to All files .

How to enable Controlled Folder Access anti-ransomware feature on Windows 10/11
All files option

6. Type Turn on Control folder access.reg inside the file name box.

7. Choose to save the script to the desktop location.

8. Click Save to add the Turn on Control folder access registry file to the desktop.

9. Close the Notepad editor and double-click the Turn on Control folder access.reg file on the desktop.

How to enable Controlled Folder Access anti-ransomware feature on Windows 10/11
Registry script confirmation dialog

10. Select Yes to confirm that you trust the script.

You can now enable Controlled Folder Access from the Windows context menu.

Leave a Comment

Microsoft details Bluetooth LE Audio requirements and support for Windows 11, 10

Microsoft details Bluetooth LE Audio requirements and support for Windows 11, 10

Microsoft introduced Bluetooth LE (low energy) Audio support with Windows 11 22H2 KB5026446 (build 22621.1778), also known as Moment 3, in May 2023.

How to Change the Default User Account Avatar in Windows

How to Change the Default User Account Avatar in Windows

Changing your avatar on Windows 10 to your own photo, or a completely new style, will help you distinguish between user accounts on your computer.

Windows 11 Market Share Is Quickly Catching Up to Windows 10

Windows 11 Market Share Is Quickly Catching Up to Windows 10

The October 2024 report provides an overview of Windows 11's market share compared to other versions of Windows.

How to enable or disable Secure Sign-In on Windows 10, Windows 11

How to enable or disable Secure Sign-In on Windows 10, Windows 11

Windows is the most targeted operating system by hackers. Therefore, you should strengthen your PC's defenses to stay safe both online and offline. This article will guide you on how to enable or disable Secure Sign-In in Windows 10.

How to add a printer to Windows 10

How to add a printer to Windows 10

Adding a printer to Windows 10 is simple, although the process for wired devices will be different than for wireless devices.

The methods and customizations in this article will help speed up your Windows 10 like the wind.

The methods and customizations in this article will help speed up your Windows 10 like the wind.

Do you want to speed up Windows 10, improve Windows 10 speed or speed up Windows 10 startup? All ways to speed up Windows 10 are in this article, please read and apply to make your Windows 10 computer run faster!

15 Diagnostic Tools to Check the Health of Your Windows PC

15 Diagnostic Tools to Check the Health of Your Windows PC

Whether you're new to Windows or a veteran, your system will eventually run into problems that aren't easy to diagnose. Before calling tech support, there are a number of PC diagnostic tools you can try.

How to Use Clipboard History in Windows 10

How to Use Clipboard History in Windows 10

Windows clipboard history got a major overhaul with the Windows 10 October update.

Microsoft is bringing annoying Windows 11 Start menu ads to Windows 10

Microsoft is bringing annoying Windows 11 Start menu ads to Windows 10

Microsoft continues to announce plans to add new features to Windows 10, despite the fact that the operating system will inevitably die in October 2025.

Why do so many people downgrade from Windows 11 to Windows 10?

Why do so many people downgrade from Windows 11 to Windows 10?

Although Microsoft promotes Windows 11 as the future of computing, many people have recently downgraded to Windows 10 on their main PCs. Here's why it might actually be worth it to go back to an older operating system.

How to install free HEVC codecs on Windows 10 (for H.265 video)

How to install free HEVC codecs on Windows 10 (for H.265 video)

Microsoft charges for its official codecs and doesn't include them in Windows 10. However, you can get them for free without pulling out your credit card and spending $0.99.

How to hide the Taskbar on Windows 10 extremely easy

How to hide the Taskbar on Windows 10 extremely easy

When you move the mouse to the Taskbar, it displays all the functions as default when you have not set it up, but if you move the mouse elsewhere, the Taskbar will automatically hide.

How to download and update Bluetooth driver for Windows 10

How to download and update Bluetooth driver for Windows 10

Bluetooth makes our life smarter and more convenient, to avoid possible Bluetooth problems in Windows 10, such as Bluetooth not available, users should download and update Bluetooth driver for Windows 10 regularly.

How to Make Windows 11 Look Like Windows 10

How to Make Windows 11 Look Like Windows 10

If you miss the familiar look and feel of Windows 10, you can restore the Start menu, taskbar, and other familiar elements with a few simple tweaks.

6 Ways to Open Computer/System Properties in Windows 10

6 Ways to Open Computer/System Properties in Windows 10

You can use one of the following 6 methods to open Computer Properties (or System Properties) on Windows 10.

How to Fix Microsoft Edge WebDAV Drive Mapping Error

How to Fix Microsoft Edge WebDAV Drive Mapping Error

Tired of the frustrating Microsoft Edge WebDAV drive mapping error? Follow our step-by-step fixes to map your WebDAV drives effortlessly and regain seamless access. Proven solutions for instant results!

Solving Microsoft Edge Script Error on High-Traffic Websites

Solving Microsoft Edge Script Error on High-Traffic Websites

Tired of Microsoft Edge "Script Error" crashing your browsing on high-traffic websites? Get step-by-step fixes, causes, and prevention tips for seamless performance on busy sites like social media and news portals.

Solving Microsoft Edge Server Error In / Application

Solving Microsoft Edge Server Error In / Application

Tired of the frustrating Microsoft Edge "Server Error In / Application"? Get proven, step-by-step solutions to fix it fast. No tech skills needed – restore smooth browsing today!

How to Fix Microsoft Edge Ultimate Performance Plan Fix

How to Fix Microsoft Edge Ultimate Performance Plan Fix

Struggling with slow Microsoft Edge? Discover proven steps to fix the Ultimate Performance power plan issue. Boost browsing speed, reduce lag, and unlock peak performance effortlessly. Step-by-step guide for Windows users.

How to Fix Microsoft Edge Untitled Error on Every Launch

How to Fix Microsoft Edge Untitled Error on Every Launch

Tired of the frustrating Microsoft Edge "Untitled Error" popping up every launch? Follow our step-by-step fixes, from quick resets to advanced repairs, to restore smooth browsing in minutes.

Troubleshooting Microsoft Edge Error Code STATUS_STACK_OVERFLOW

Troubleshooting Microsoft Edge Error Code STATUS_STACK_OVERFLOW

Struggling with Microsoft Edge Error Code STATUS_STACK_OVERFLOW? Discover step-by-step troubleshooting fixes to resolve stack overflow crashes fast. Updated for latest Edge versions – no tech skills needed!

How to Fix Microsoft Edge Repair Error and Installation Loops

How to Fix Microsoft Edge Repair Error and Installation Loops

Tired of Microsoft Edge "Repair Error" and frustrating installation loops? Follow our proven, step-by-step guide with the latest fixes for smooth browsing. Works on Windows 11/10 – get Edge running perfectly!

How to Clear Microsoft Edge Data Automatically on Exit

How to Clear Microsoft Edge Data Automatically on Exit

Discover how to clear Microsoft Edge data automatically on exit for ultimate privacy. Follow our easy guide to wipe browsing history, cookies, and more every time you close the browser. Boost security now!

How to Restore Microsoft Edge Favorites After a Sync Error

How to Restore Microsoft Edge Favorites After a Sync Error

Struggling with Microsoft Edge favorites sync error? Learn proven methods to restore Microsoft Edge favorites after a sync error quickly. Step-by-step guide with backups and troubleshooting tips. Fix it now!

Solving Microsoft Edge Privacy Error and Connection Not Private

Solving Microsoft Edge Privacy Error and Connection Not Private

Tired of Microsoft Edge Privacy Error or Connection Not Private warnings? Get instant, step-by-step fixes for secure browsing. Clear cache, reset settings, and more – no tech skills needed!

How to Fix Microsoft Edge Taskbar Icon Overlapping Fix

How to Fix Microsoft Edge Taskbar Icon Overlapping Fix

Tired of Microsoft Edge taskbar icon overlapping cluttering your screen? Follow our proven step-by-step fixes for a clean taskbar. Quick solutions that work on the latest Edge versions – no tech skills needed!

How to Fix Microsoft Edge Audio Out of Sync Error

How to Fix Microsoft Edge Audio Out of Sync Error

Tired of Microsoft Edge audio out of sync ruining your videos? Follow our expert, step-by-step guide with the latest fixes to eliminate audio lag and desync issues instantly. Restore smooth playback today!

Troubleshooting Edge Browser Slow Navigation on Windows 11

Troubleshooting Edge Browser Slow Navigation on Windows 11

Tired of sluggish Edge browser navigation on Windows 11? This ultimate troubleshooting guide delivers quick, effective fixes for slow loading, laggy tabs, and poor performance. Restore lightning-fast browsing today!

Solving Microsoft Edge Side-by-Side Configuration Error

Solving Microsoft Edge Side-by-Side Configuration Error

Stuck with Microsoft Edge "Side-by-Side Configuration" Error? Follow our proven, step-by-step fixes to resolve it fast and restore smooth browsing. No tech skills needed!

Troubleshooting Microsoft Edge Webcam Privacy Error

Troubleshooting Microsoft Edge Webcam Privacy Error

Struggling with Microsoft Edge Webcam Privacy Error? Follow our proven step-by-step guide to troubleshoot and fix it quickly. Regain webcam access in minutes with simple, effective solutions.