Forum Discussion
The737
Jul 20, 2023Brass Contributor
Controlled Folder Access configured in Intune not being enforced on W10
Hi All. I am working on enabling CFA on some machines and started with some test VMs at first. I created the ASR rule, enabled Controlled Folder Access and assigned it to a group to which my test VM...
am1357
Brass Contributor
I ran into that too. It looks like the CFA test tool is now a trusted application and can therefore write into protected folders.
You could remove PowerShell as a protected application and use a PS command to create a file in a protected folder, e.g.
Write-Output "CFA Test File - Can be deleted" | Out-File -FilePath "$($env:USERPROFILE)\Documents\CFA-test.txt"
CFA should block this.
The737
Jul 27, 2023Brass Contributor
am1357, thank you for the answer. Do I need to remove PS as a protected application at a device level or can I do it from Intune? It shouldn't have any other negative effects on running PS I guess, right?
- am1357Jul 27, 2023Brass Contributor
The737 It should be possible to remove that from the device itself using
Remove-MpPreference -ControlledFolderAccessAllowedApplications "PS PATH"
https://learn.microsoft.com/en-us/powershell/module/defender/remove-mppreference