Check what LDAP ports are available in a Domain Controller Server (ITNinja)
To identify Domain Server with the standard LDAP port (389) open, the Information Systems team may need to assess multiple data centers efficiently. Manually checking each data center can be time-consuming. Instead, a more effective approach is to use a PowerShell (PS1) script to automate the process, significantly reducing the time required for the task.
This article was originally posted on ITNinja by RandomITdude24.
This post provide a good and simple step by step way to test your servers via PowerShell.
Testing LDAP and LDAPS connectivity with PowerShell - Evotec
To use it is super simple. Copy the script, paste it in a notepad (or notepad++) save it as ps1, and execute it from PowerShell.
Test-LDAP -ComputerName 'AD1','AD2' | Format-Table
AD1 and AD2 are going to be your DCs. The result will look a bit like this:
© ALL RIGHTS RESERVED. Termini di utilizzo Privacy Cookie Preference Center