Skip to content

Instantly share code, notes, and snippets.

View dmcxblue's full-sized avatar

David dmcxblue

View GitHub Profile
@dmcxblue
dmcxblue / AppLocker_Rules.xml
Created December 19, 2023 17:12
AppLocker Rules
<AppLockerPolicy Version="1">
<RuleCollection Type="Exe" EnforcementMode="NotConfigured">
<FilePathRule Id="9d86e76a-1a51-4328-bdb4-d6c89be61727" Name="Block CMD" Description="" UserOrGroupSid="S-1-1-0" Action="Deny">
<Conditions>
<FilePathCondition Path="%SYSTEM32%\cmd.exe" />
</Conditions>
</FilePathRule>
<FilePathRule Id="921cc481-6e17-4653-8f75-050b80acca20" Name="(Default Rule) All files located in the Program Files folder" Description="Allows members of the Everyone group to run applications that are located in the Program Files folder." UserOrGroupSid="S-1-1-0" Action="Allow">
<Conditions>
<FilePathCondition Path="%PROGRAMFILES%\*" />