dont use global catalog for Get-BetterADUser

master
lub 5 years ago
parent 39f6d2380a
commit fb45826414

@ -28,7 +28,7 @@ function Get-BetterADUser {
[string] [string]
$SearchTerm, $SearchTerm,
[string] [string]
$Server = '{0}:3268' -f $env:USERDNSDOMAIN $Server = $env:USERDNSDOMAIN
) )
$filter = 'UserPrincipalName -like "*{0}*" -or Name -like "*{0}*"' -f $SearchTerm $filter = 'UserPrincipalName -like "*{0}*" -or Name -like "*{0}*"' -f $SearchTerm

Loading…
Cancel
Save