HotCakeX / Harden-Windows-Security

Harden Windows Safely, Securely using Official Supported Microsoft methods and proper explanation | Always up-to-date and works with the latest build of Windows | Provides tools and Guides for Personal, Enterprise, Government and Military security levels | Read The Rationale https://github.com/HotCakeX/Harden-Windows-Security/blob/main/Rationale.md
https://hotcakex.github.io
MIT License
1.84k stars 143 forks source link

[Bug]: Controlled Folder Access enabled but configured by Intune Policy not seen #255

Closed markuslosco closed 6 months ago

markuslosco commented 6 months ago

Tools category

Harden Windows Security Module

Does your system meet the requirements?

Is your Windows installation genuine?

Please explain the bug

Controlled Folder Access is enabled and configured by a Intune Device Configuration Policy but in your script, compliance check that doesnt check that configuration and say it was disabled :-(

HotCakeX commented 6 months ago

Hi, does this

(Get-MpPreference).EnableControlledFolderAccess

return 1 when you run it on a computer that has Controlled folder access applied through Intune policy?

markuslosco commented 6 months ago

yes... image

image

But i think i should say the complete story.. After apply the basisecurity rules... we need to reconfigure the local gpo to "not configured".. only after that is it possible to get Controlled Folder Access by a Intune Device Configuration Policy..

HotCakeX commented 6 months ago

Thank you for reporting it, I just released an update that fixes it. Please report any other discrepancy that you might find.

https://github.com/HotCakeX/Harden-Windows-Security/releases/tag/Hardening-Module-v.0.4.2


But i think i should say the complete story.. After apply the basisecurity rules... we need to reconfigure the local gpo to "not configured".. only after that is it possible to get Controlled Folder Access by a Intune Device Configuration Policy..

That makes sense I think, better to either use Intune or Group policies only.