Skip to content

Commit

Permalink
Merge pull request #679 from microsoft/bilong-cve
Browse files Browse the repository at this point in the history
Fixes #678
  • Loading branch information
bill-long authored Aug 6, 2021
2 parents 6517022 + 69ab89c commit 58c2913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Security/src/Test-CVE-2021-34470.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ if ($ApplyFix) {
$storageGroupSchemaEntry.Properties["possSuperiors"] | Out-File $OutputFile -Append
}

$isSchemaAdmin = $null -ne (whoami /groups | sls "\\Schema Admins\s+")
$isSchemaAdmin = $null -ne (whoami /groups | Select-String "\\Schema Admins\s+")
if (-not $isSchemaAdmin) {
Write-Warning "This user is not in Schema Admins. Cannot apply fix."
return
Expand Down

0 comments on commit 58c2913

Please sign in to comment.