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

Commit 445f7b2

Browse files
committed
Changed -KerberosPreauthNotRequired to -PreauthNotRequired
1 parent 454e040 commit 445f7b2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Recon/PowerView.ps1

+4-3
Original file line numberDiff line numberDiff line change
@@ -4471,7 +4471,7 @@ Switch. Return user accounts that are marked as 'sensitive and not allowed for d
44714471

44724472
Switch. Return computer objects that are trusted to authenticate for other principals.
44734473

4474-
.PARAMETER KerberosPreauthNotRequired
4474+
.PARAMETER PreauthNotRequired
44754475

44764476
Switch. Return user accounts with "Do not require Kerberos preauthentication" set.
44774477

@@ -4628,8 +4628,9 @@ The raw DirectoryServices.SearchResult object, if -Raw is enabled.
46284628
[Switch]
46294629
$TrustedToAuth,
46304630

4631+
[Alias('KerberosPreauthNotRequired', 'NoPreauth')]
46314632
[Switch]
4632-
$KerberosPreauthNotRequired,
4633+
$PreauthNotRequired,
46334634

46344635
[ValidateNotNullOrEmpty()]
46354636
[String]
@@ -4763,7 +4764,7 @@ The raw DirectoryServices.SearchResult object, if -Raw is enabled.
47634764
Write-Verbose '[Get-DomainUser] Searching for users that are trusted to authenticate for other principals'
47644765
$Filter += '(msds-allowedtodelegateto=*)'
47654766
}
4766-
if ($PSBoundParameters['KerberosPreauthNotRequired']) {
4767+
if ($PSBoundParameters['PreauthNotRequired']) {
47674768
Write-Verbose '[Get-DomainUser] Searching for user accounts that do not require kerberos preauthenticate'
47684769
$Filter += '(userAccountControl:1.2.840.113556.1.4.803:=4194304)'
47694770
}

0 commit comments

Comments
 (0)