@@ -4423,7 +4423,7 @@ Required Dependencies: Get-DomainSearcher, Convert-ADName, Convert-LDAPProperty
4423
4423
4424
4424
Builds a directory searcher object using Get-DomainSearcher, builds a custom
4425
4425
LDAP filter based on targeting/filter parameters, and searches for all objects
4426
- matching the criteria. To only return specific properies , use
4426
+ matching the criteria. To only return specific properties , use
4427
4427
"-Properties samaccountname,usnchanged,...". By default, all user objects for
4428
4428
the current domain are returned.
4429
4429
@@ -4449,6 +4449,10 @@ Switch. Return user accounts that are not marked as 'sensitive and not allowed f
4449
4449
4450
4450
Switch. Return user accounts that are marked as 'sensitive and not allowed for delegation'
4451
4451
4452
+ .PARAMETER TrustedToAuth
4453
+
4454
+ Switch. Return computer objects that are trusted to authenticate for other principals.
4455
+
4452
4456
.PARAMETER KerberosPreuthNotRequired
4453
4457
4454
4458
Switch. Return user accounts with "Do not require Kerberos preauthentication" set.
@@ -4603,6 +4607,9 @@ The raw DirectoryServices.SearchResult object, if -Raw is enabled.
4603
4607
[Switch]
4604
4608
$DisallowDelegation,
4605
4609
4610
+ [Switch]
4611
+ $TrustedToAuth,
4612
+
4606
4613
[Switch]
4607
4614
$KerberosPreuthNotRequired,
4608
4615
@@ -4731,6 +4738,10 @@ The raw DirectoryServices.SearchResult object, if -Raw is enabled.
4731
4738
Write-Verbose '[Get-DomainUser] Searching for adminCount=1'
4732
4739
$Filter += '(admincount=1)'
4733
4740
}
4741
+ if ($PSBoundParameters['TrustedToAuth']) {
4742
+ Write-Verbose '[Get-DomainUser] Searching for users that are trusted to authenticate for other principals'
4743
+ $Filter += '(msds-allowedtodelegateto=*)'
4744
+ }
4734
4745
if ($PSBoundParameters['KerberosPreuthNotRequired']) {
4735
4746
Write-Verbose '[Get-DomainUser] Searching for user accounts that do not require kerberos preauthenticate'
4736
4747
$Filter += '(userAccountControl:1.2.840.113556.1.4.803:=4194304)'
@@ -5472,7 +5483,7 @@ Required Dependencies: Get-DomainSearcher, Convert-LDAPProperty
5472
5483
5473
5484
Builds a directory searcher object using Get-DomainSearcher, builds a custom
5474
5485
LDAP filter based on targeting/filter parameters, and searches for all objects
5475
- matching the criteria. To only return specific properies , use
5486
+ matching the criteria. To only return specific properties , use
5476
5487
"-Properties samaccountname,usnchanged,...". By default, all computer objects for
5477
5488
the current domain are returned.
5478
5489
@@ -5828,7 +5839,7 @@ Required Dependencies: Get-DomainSearcher, Convert-LDAPProperty, Convert-ADName
5828
5839
5829
5840
Builds a directory searcher object using Get-DomainSearcher, builds a custom
5830
5841
LDAP filter based on targeting/filter parameters, and searches for all objects
5831
- matching the criteria. To only return specific properies , use
5842
+ matching the criteria. To only return specific properties , use
5832
5843
"-Properties samaccountname,usnchanged,...". By default, all objects for
5833
5844
the current domain are returned.
5834
5845
@@ -7437,7 +7448,7 @@ Required Dependencies: Get-DomainSearcher, Convert-LDAPProperty
7437
7448
7438
7449
Builds a directory searcher object using Get-DomainSearcher, builds a custom
7439
7450
LDAP filter based on targeting/filter parameters, and searches for all objects
7440
- matching the criteria. To only return specific properies , use
7451
+ matching the criteria. To only return specific properties , use
7441
7452
"-Properties whencreated,usnchanged,...". By default, all OU objects for
7442
7453
the current domain are returned.
7443
7454
@@ -7700,7 +7711,7 @@ Required Dependencies: Get-DomainSearcher, Convert-LDAPProperty
7700
7711
7701
7712
Builds a directory searcher object using Get-DomainSearcher, builds a custom
7702
7713
LDAP filter based on targeting/filter parameters, and searches for all objects
7703
- matching the criteria. To only return specific properies , use
7714
+ matching the criteria. To only return specific properties , use
7704
7715
"-Properties whencreated,usnchanged,...". By default, all site objects for
7705
7716
the current domain are returned.
7706
7717
@@ -7959,7 +7970,7 @@ Required Dependencies: Get-DomainSearcher, Convert-LDAPProperty
7959
7970
7960
7971
Builds a directory searcher object using Get-DomainSearcher, builds a custom
7961
7972
LDAP filter based on targeting/filter parameters, and searches for all objects
7962
- matching the criteria. To only return specific properies , use
7973
+ matching the criteria. To only return specific properties , use
7963
7974
"-Properties whencreated,usnchanged,...". By default, all subnet objects for
7964
7975
the current domain are returned.
7965
7976
@@ -8312,7 +8323,7 @@ Required Dependencies: Get-DomainSearcher, Get-DomainObject, Convert-ADName, Con
8312
8323
8313
8324
Builds a directory searcher object using Get-DomainSearcher, builds a custom
8314
8325
LDAP filter based on targeting/filter parameters, and searches for all objects
8315
- matching the criteria. To only return specific properies , use
8326
+ matching the criteria. To only return specific properties , use
8316
8327
"-Properties samaccountname,usnchanged,...". By default, all group objects for
8317
8328
the current domain are returned. To return the groups a specific user/group is
8318
8329
a part of, use -MemberIdentity X to execute token groups enumeration.
@@ -10572,7 +10583,7 @@ Required Dependencies: Get-DomainSearcher, Get-DomainComputer, Get-DomainUser, G
10572
10583
10573
10584
Builds a directory searcher object using Get-DomainSearcher, builds a custom
10574
10585
LDAP filter based on targeting/filter parameters, and searches for all objects
10575
- matching the criteria. To only return specific properies , use
10586
+ matching the criteria. To only return specific properties , use
10576
10587
"-Properties samaccountname,usnchanged,...". By default, all GPO objects for
10577
10588
the current domain are returned. To enumerate all GPOs that are applied to
10578
10589
a particular machine, use -ComputerName X.
0 commit comments