Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cyb3rWard0g/6b2589e30525e9ffd23d60e6f4182b75 to your computer and use it in GitHub Desktop.
Save Cyb3rWard0g/6b2589e30525e9ffd23d60e6f4182b75 to your computer and use it in GitHub Desktop.

Clone Set-Audit Rule Project

git clone https://github.com/OTRF/Set-AuditRule
cd Set-AuditRule

Create Rule

Set-AuditRule -RegistryPath 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\microphone' -IdentityReference Everyone -Rights SetValue,CreateSubKey -InheritanceFlags ContainerInherit -PropagationFlags InheritOnly -AuditFlags Success
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment