Add Application to Controlled Folder is a handy PowerShell script which you may use to whitelist blocked programs by Windows 10's Controlled Folder Access feature.
Controlled Folder Access is a new security feature of Windows Defender that Microsoft introduced in the Windows 10 Fall Creators Update.
The feature is not turned on by default; we have published detailed instructions on enabling the feature in the linked guide above.
Controlled Folder Access monitors access to folders that it protects, and blocks access to these folders if it identifies a program as outright malicious or suspicious.
While that means that most programs that you run on Windows will be allowed access automatically, some legitimate programs may be flagged by the security feature. Any blocked application is prevented from accessing the folders, and that won't change unless you whitelist these programs explicitly.
While you can whitelist one program at a time, you may also improve the process with the help of the PowerShell script Add Application to Controlled Folder.
The script retrieves the list of blocked applications and gives you options to whitelist none, some or all of those programs.
Note: You need to allow the running of unsigned scripts if this is the first third-party PowerShell script that is run on the Windows PC. On an elevated PowerShell prompt, type set-executionpolicy remotesigned and select Y for yes when the prompt is displayed.
Here is how it works in detail:
You can verify that the programs have been added to the whitelist by going to Virus & threat protection > Virus & threat protection settings > Allow an app through controlled folder access.
If you like our content, and would like to help, please consider making a contribution: