Skip to content

Instantly share code, notes, and snippets.

@lennybacon
Last active September 18, 2019 08:11
Show Gist options
  • Save lennybacon/824add3246e63ae81797dbee56263390 to your computer and use it in GitHub Desktop.
Save lennybacon/824add3246e63ae81797dbee56263390 to your computer and use it in GitHub Desktop.
Windowes Defender Exclusions for Visual Studio and DevOps Build Agents
# .NET
Add-MpPreference -ExclusionPath "%WINDIR%\Microsoft.NET\"
Add-MpPreference -ExclusionPath "%WINDIR%\assembly"
# Visual Studio
Add-MpPreference -ExclusionProcess "devenv.exe"
Add-MpPreference -ExclusionProcess "msbuild.exe"
Add-MpPreference -ExclusionProcess "VBCSCompiler.exe"
Add-MpPreference -ExclusionPath "%ProgramFiles(x86)%\Microsoft SDKs\"
Add-MpPreference -ExclusionPath "%ProgramFiles(x86)%\Microsoft Visual Studio\"
Add-MpPreference -ExclusionPath "%LocalAppData%\Microsoft\VisualStudio"
Add-MpPreference -ExclusionPath "%AppData%\Microsoft\VisualStudio"
# Resharper
Add-MpPreference -ExclusionPath "%LocalAppData%\JetBrains\Transient\"
# Windows Installer XML Toolset
Add-MpPreference -ExclusionProcess "light.exe"
Add-MpPreference -ExclusionProcess "candel.exe"
# ASP.NET Web development (IIS)
Add-MpPreference -ExclusionProcess "w3wp.exe"
Add-MpPreference -ExclusionPath "%WINDIR%\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files"
Add-MpPreference -ExclusionPath "%WINDIR%\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files"
# ASP.NET Web development (IIS Express)
Add-MpPreference -ExclusionProcess "iisexpress.exe"
Add-MpPreference -ExclusionPath "%LocalAppData%\Temp\Temporary ASP.NET Files"
# Build Agent
Add-MpPreference -ExclusionPath "%AgentsDir%"
Add-MpPreference -ExclusionPath "%UserProfile%\.nuget\"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment