Skip to content

Instantly share code, notes, and snippets.

View rlabbe's full-sized avatar

Roger Labbe rlabbe

  • SF Bay Area, California
View GitHub Profile
@rlabbe
rlabbe / Windows Defender Exclusions VS 2022.ps1
Created June 25, 2025 19:48 — forked from Braytiner/Windows Defender Exclusions VS 2022.ps1
Adds Windows Defender exclusions for Visual Studio 2022
$userPath = $env:USERPROFILE
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\Downloads\HeidiSQL_11.3_64_Portable') > $null
$pathExclusions.Add($userPath + '\.dotnet') > $null