Type fix.

Added -TrustedToAuth to Get-DomainUser
This commit is contained in:
HarmJ0y 2016-12-15 19:04:53 -05:00
parent 831dde1268
commit 9853900578
1 changed files with 19 additions and 8 deletions

View File

@ -4423,7 +4423,7 @@ Required Dependencies: Get-DomainSearcher, Convert-ADName, Convert-LDAPProperty
Builds a directory searcher object using Get-DomainSearcher, builds a custom Builds a directory searcher object using Get-DomainSearcher, builds a custom
LDAP filter based on targeting/filter parameters, and searches for all objects LDAP filter based on targeting/filter parameters, and searches for all objects
matching the criteria. To only return specific properies, use matching the criteria. To only return specific properties, use
"-Properties samaccountname,usnchanged,...". By default, all user objects for "-Properties samaccountname,usnchanged,...". By default, all user objects for
the current domain are returned. the current domain are returned.
@ -4449,6 +4449,10 @@ Switch. Return user accounts that are not marked as 'sensitive and not allowed f
Switch. Return user accounts that are marked as 'sensitive and not allowed for delegation' Switch. Return user accounts that are marked as 'sensitive and not allowed for delegation'
.PARAMETER TrustedToAuth
Switch. Return computer objects that are trusted to authenticate for other principals.
.PARAMETER KerberosPreuthNotRequired .PARAMETER KerberosPreuthNotRequired
Switch. Return user accounts with "Do not require Kerberos preauthentication" set. Switch. Return user accounts with "Do not require Kerberos preauthentication" set.
@ -4603,6 +4607,9 @@ The raw DirectoryServices.SearchResult object, if -Raw is enabled.
[Switch] [Switch]
$DisallowDelegation, $DisallowDelegation,
[Switch]
$TrustedToAuth,
[Switch] [Switch]
$KerberosPreuthNotRequired, $KerberosPreuthNotRequired,
@ -4731,6 +4738,10 @@ The raw DirectoryServices.SearchResult object, if -Raw is enabled.
Write-Verbose '[Get-DomainUser] Searching for adminCount=1' Write-Verbose '[Get-DomainUser] Searching for adminCount=1'
$Filter += '(admincount=1)' $Filter += '(admincount=1)'
} }
if ($PSBoundParameters['TrustedToAuth']) {
Write-Verbose '[Get-DomainUser] Searching for users that are trusted to authenticate for other principals'
$Filter += '(msds-allowedtodelegateto=*)'
}
if ($PSBoundParameters['KerberosPreuthNotRequired']) { if ($PSBoundParameters['KerberosPreuthNotRequired']) {
Write-Verbose '[Get-DomainUser] Searching for user accounts that do not require kerberos preauthenticate' Write-Verbose '[Get-DomainUser] Searching for user accounts that do not require kerberos preauthenticate'
$Filter += '(userAccountControl:1.2.840.113556.1.4.803:=4194304)' $Filter += '(userAccountControl:1.2.840.113556.1.4.803:=4194304)'
@ -5472,7 +5483,7 @@ Required Dependencies: Get-DomainSearcher, Convert-LDAPProperty
Builds a directory searcher object using Get-DomainSearcher, builds a custom Builds a directory searcher object using Get-DomainSearcher, builds a custom
LDAP filter based on targeting/filter parameters, and searches for all objects LDAP filter based on targeting/filter parameters, and searches for all objects
matching the criteria. To only return specific properies, use matching the criteria. To only return specific properties, use
"-Properties samaccountname,usnchanged,...". By default, all computer objects for "-Properties samaccountname,usnchanged,...". By default, all computer objects for
the current domain are returned. the current domain are returned.
@ -5828,7 +5839,7 @@ Required Dependencies: Get-DomainSearcher, Convert-LDAPProperty, Convert-ADName
Builds a directory searcher object using Get-DomainSearcher, builds a custom Builds a directory searcher object using Get-DomainSearcher, builds a custom
LDAP filter based on targeting/filter parameters, and searches for all objects LDAP filter based on targeting/filter parameters, and searches for all objects
matching the criteria. To only return specific properies, use matching the criteria. To only return specific properties, use
"-Properties samaccountname,usnchanged,...". By default, all objects for "-Properties samaccountname,usnchanged,...". By default, all objects for
the current domain are returned. the current domain are returned.
@ -7437,7 +7448,7 @@ Required Dependencies: Get-DomainSearcher, Convert-LDAPProperty
Builds a directory searcher object using Get-DomainSearcher, builds a custom Builds a directory searcher object using Get-DomainSearcher, builds a custom
LDAP filter based on targeting/filter parameters, and searches for all objects LDAP filter based on targeting/filter parameters, and searches for all objects
matching the criteria. To only return specific properies, use matching the criteria. To only return specific properties, use
"-Properties whencreated,usnchanged,...". By default, all OU objects for "-Properties whencreated,usnchanged,...". By default, all OU objects for
the current domain are returned. the current domain are returned.
@ -7700,7 +7711,7 @@ Required Dependencies: Get-DomainSearcher, Convert-LDAPProperty
Builds a directory searcher object using Get-DomainSearcher, builds a custom Builds a directory searcher object using Get-DomainSearcher, builds a custom
LDAP filter based on targeting/filter parameters, and searches for all objects LDAP filter based on targeting/filter parameters, and searches for all objects
matching the criteria. To only return specific properies, use matching the criteria. To only return specific properties, use
"-Properties whencreated,usnchanged,...". By default, all site objects for "-Properties whencreated,usnchanged,...". By default, all site objects for
the current domain are returned. the current domain are returned.
@ -7959,7 +7970,7 @@ Required Dependencies: Get-DomainSearcher, Convert-LDAPProperty
Builds a directory searcher object using Get-DomainSearcher, builds a custom Builds a directory searcher object using Get-DomainSearcher, builds a custom
LDAP filter based on targeting/filter parameters, and searches for all objects LDAP filter based on targeting/filter parameters, and searches for all objects
matching the criteria. To only return specific properies, use matching the criteria. To only return specific properties, use
"-Properties whencreated,usnchanged,...". By default, all subnet objects for "-Properties whencreated,usnchanged,...". By default, all subnet objects for
the current domain are returned. the current domain are returned.
@ -8312,7 +8323,7 @@ Required Dependencies: Get-DomainSearcher, Get-DomainObject, Convert-ADName, Con
Builds a directory searcher object using Get-DomainSearcher, builds a custom Builds a directory searcher object using Get-DomainSearcher, builds a custom
LDAP filter based on targeting/filter parameters, and searches for all objects LDAP filter based on targeting/filter parameters, and searches for all objects
matching the criteria. To only return specific properies, use matching the criteria. To only return specific properties, use
"-Properties samaccountname,usnchanged,...". By default, all group objects for "-Properties samaccountname,usnchanged,...". By default, all group objects for
the current domain are returned. To return the groups a specific user/group is the current domain are returned. To return the groups a specific user/group is
a part of, use -MemberIdentity X to execute token groups enumeration. a part of, use -MemberIdentity X to execute token groups enumeration.
@ -10572,7 +10583,7 @@ Required Dependencies: Get-DomainSearcher, Get-DomainComputer, Get-DomainUser, G
Builds a directory searcher object using Get-DomainSearcher, builds a custom Builds a directory searcher object using Get-DomainSearcher, builds a custom
LDAP filter based on targeting/filter parameters, and searches for all objects LDAP filter based on targeting/filter parameters, and searches for all objects
matching the criteria. To only return specific properies, use matching the criteria. To only return specific properties, use
"-Properties samaccountname,usnchanged,...". By default, all GPO objects for "-Properties samaccountname,usnchanged,...". By default, all GPO objects for
the current domain are returned. To enumerate all GPOs that are applied to the current domain are returned. To enumerate all GPOs that are applied to
a particular machine, use -ComputerName X. a particular machine, use -ComputerName X.