From 1067a68c2223b058ac71cf9e0a1dc54d6fb9ea1c Mon Sep 17 00:00:00 2001 From: HUMORCE Date: Mon, 29 May 2023 12:29:27 +0000 Subject: [PATCH 1/2] fix(scoop-checkup): Skip defender check in Windows Sandbox --- libexec/scoop-checkup.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/scoop-checkup.ps1 b/libexec/scoop-checkup.ps1 index a775ec3964..6b2ed4760c 100644 --- a/libexec/scoop-checkup.ps1 +++ b/libexec/scoop-checkup.ps1 @@ -10,7 +10,7 @@ $defenderIssues = 0 $adminPrivileges = ([System.Security.Principal.WindowsPrincipal] [System.Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([System.Security.Principal.WindowsBuiltInRole]::Administrator) -if ($adminPrivileges) { +if ($adminPrivileges -and $env:USERNAME -ne 'WDAGUtilityAccount') { $defenderIssues += !(check_windows_defender $false) $defenderIssues += !(check_windows_defender $true) } From dfb7f16bfeb9b5076c47e22f6e998f1529afcb41 Mon Sep 17 00:00:00 2001 From: HUMORCE Date: Mon, 29 May 2023 16:36:15 +0000 Subject: [PATCH 2/2] CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a685eacf3e..0bcc94c162 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ - **install:** Fix download from private GitHub repositories ([#5361](https://github.com/ScoopInstaller/Scoop/issues/5361)) - **scoop-info:** Fix errors in file size collection when `--verbose` ([#5352](https://github.com/ScoopInstaller/Scoop/pull/5352)) - **shim:** Use bash executable directly ([#5433](https://github.com/ScoopInstaller/Scoop/issues/5433)) +- **scoop-checkup:** Skip defender check in Windows Sandbox ([#5519]https://github.com/ScoopInstaller/Scoop/issues/5519) ### Performance Improvements