# Attack Surface Reduction scripts

- `ASR_Analyzer_v2.2.ps1` - A script taken from [here](https://github.com/anthonws/MDATP_PoSh_Scripts/tree/master/ASR) (and documented in [here](https://techcommunity.microsoft.com/t5/microsoft-defender-for-endpoint/demystifying-attack-surface-reduction-rules-part-3/ba-p/1360968)) that lists all ASR rules and their configuration state.

- `Configure-ASR.ps1` - my little script that configures all ASR rules at once to a specific state. Use it like so:
  - `PS> .\Configure-ASR.ps1 -State Audit` - to configure them all into **Audit** mode
  - `PS> .\Configure-ASR.ps1 -State Enabled` - to configure them all into **Enabled** mode
  - `PS> .\Configure-ASR.ps1 -State Disabled` - to configure them all into **Disabled** mode
