MicrosoftDocs / WDAC-Toolkit

Documentation and tools to access Windows Defender Application Control (WDAC) technology.
Creative Commons Attribution 4.0 International
201 stars 43 forks source link

Fixed incorrect logic in PowerShell script causing rule actions to be flipped #388

Closed jgeurten closed 5 months ago

jgeurten commented 5 months ago

Issue:

Rules set to Allow in the UI were created as Deny Rules set to Deny in the UI were created as Allow

Fix:

Issue in the new PowerShell script which appended the -Deny flag if the Deny parameter == False. Fixed the logic

Closing #386