From fb45826414f06ba392c8f5707cc86ff6c0089c88 Mon Sep 17 00:00:00 2001 From: lub Date: Tue, 13 Aug 2019 15:15:16 +0200 Subject: [PATCH] dont use global catalog for Get-BetterADUser --- profile.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile.ps1 b/profile.ps1 index 9496dba..a07afb9 100644 --- a/profile.ps1 +++ b/profile.ps1 @@ -28,7 +28,7 @@ function Get-BetterADUser { [string] $SearchTerm, [string] - $Server = '{0}:3268' -f $env:USERDNSDOMAIN + $Server = $env:USERDNSDOMAIN ) $filter = 'UserPrincipalName -like "*{0}*" -or Name -like "*{0}*"' -f $SearchTerm