Forked from philippdolder/Setup-Windows-Defender-Exclusions-Rider.ps1
Created
April 3, 2020 16:30
-
-
Save ddieppa/dda95c533dc9dd184be64f478c3d3694 to your computer and use it in GitHub Desktop.
Windows Defender configuration for JetBrains Rider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory)] | |
[string] | |
$RiderHome | |
) | |
function Update-WindowsDefenderForRider { | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory)] | |
[string] | |
$RiderHome | |
) | |
$directories = @() | |
$directories += Get-ChildItem -Directory -Recurse $RiderHome\bin | |
$directories += "$($RiderHome)\bin" | |
$directories += Get-ChildItem -Directory -Recurse $RiderHome\lib\ReSharperHost | |
$directories += "$($RiderHome)\lib\ReSharperHost" | |
$directories += Get-ChildItem -Directory -Recurse $RiderHome\tools | |
$directories | ForEach-Object { | |
Add-MpPreference -ExclusionProcess "$($_)\*.dll" | |
Add-MpPreference -ExclusionProcess "$($_)\*.exe" | |
} | |
} | |
Update-WindowsDefenderForRider -RiderHome $RiderHome |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment