Skip to content

Instantly share code, notes, and snippets.

View GiampaoloGabba's full-sized avatar

Giampaolo Gabba GiampaoloGabba

View GitHub Profile
@Braytiner
Braytiner / Windows Defender Exclusions VS 2022.ps1
Last active April 25, 2024 18:03
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