From 4ae1a95288c1d30babc01994a15461f1a98f387c Mon Sep 17 00:00:00 2001 From: Kevin Gosse Date: Mon, 21 Jul 2025 17:13:07 +0200 Subject: [PATCH] Fix script when there is one existing exclusion Fixes RIDER-128049 (cherry picked from commit 14c2c4d16cec3487e077b7e3a17c5c89d7c516b5) NET-CR-16984 GitOrigin-RevId: baeed9b5109e83e35a347bef96b9448626f88d1d --- bin/win/defender-exclusions.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/win/defender-exclusions.ps1 b/bin/win/defender-exclusions.ps1 index 6fbc8a74f9fb..718ac644c32c 100644 --- a/bin/win/defender-exclusions.ps1 +++ b/bin/win/defender-exclusions.ps1 @@ -56,7 +56,7 @@ try { if (-not $exclusions) { $exclusions = @() } else { - $exclusions = Expand-Excluded $exclusions + $exclusions = @(Expand-Excluded $exclusions) } foreach ($path in $args) {