Skip to content

Commit

Permalink
fix(scoop-checkup): Skip defender check in Windows Sandbox (#5519)
Browse files Browse the repository at this point in the history
  • Loading branch information
HUMORCE committed May 30, 2023
1 parent 52059ca commit 1d14058
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion libexec/scoop-checkup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 1d14058

Please sign in to comment.