diff --git a/ActiveDirectory/Test-LDAP.ps1 b/ActiveDirectory/Test-LDAP.ps1 index 4037462..c52efed 100644 --- a/ActiveDirectory/Test-LDAP.ps1 +++ b/ActiveDirectory/Test-LDAP.ps1 @@ -68,7 +68,7 @@ } try { Write-Verbose ('$($MyInvocation.MyCommand): Trying to LDAP bind - {0}' -f $server) - $adObjects = $searcher.FindAll() + $adObjects = $searcher.FindOne() Write-Verbose ('$($MyInvocation.MyCommand): LDAP Server {0} is up (object path = {1})' -f $server, $adObjects.Item(0).Path) $result.Connected = $true }