ldap – How to Query LDAP via Port 636 from Powershell

active-directoryldappowershellsslwindows-server-2012-r2

I use adsi to connect to AD and measure the latency of the connection. For same query when i replace server with server:636 , it fails. What is the easiest way to do a ldap "find" through 636 port?

Best Answer

I had the same question as you did. Here is a link that I found. It worked perfectly. I tested it against several of our Domain Controllers, and also against a vanity name i.e. ldaps.domain.com. It worked as expected.

Testing LDAP and LDAPS connectivity with PowerShell