Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

Commit b038f09

Browse files
Typo fix
1 parent d5c0abc commit b038f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Recon/PowerView.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -18914,7 +18914,7 @@ Custom PSObject with translated group property fields from WinNT results.
1891418914
# Add check if user defaults to/selects "Administrators"
1891518915
if ($GroupName -eq "Administrators") {
1891618916
$AdminSecurityIdentifier = New-Object System.Security.Principal.SecurityIdentifier([System.Security.Principal.WellKnownSidType]::BuiltinAdministratorsSid,$null)
18917-
$GroupName = ($SecurityIdentifier.Translate([System.Security.Principal.NTAccount]).Value -split "\\")[-1]
18917+
$GroupName = ($AdminSecurityIdentifier.Translate([System.Security.Principal.NTAccount]).Value -split "\\")[-1]
1891818918
}
1891918919

1892018920
if ($TokenHandle) {

0 commit comments

Comments
 (0)