How to query LDAP via port 636 from powershell?

8,181

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

Share:
8,181

Related videos on Youtube

Darktux
Author by

Darktux

Updated on September 18, 2022

Comments

  • Darktux
    Darktux over 1 year

    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?

  • Cory Knutson
    Cory Knutson about 4 years
    Welcome to ServerFault! Link only answers are not allowed. Please include relevant information to prevent issues with link-rot. Thank you. serverfault.com/help/how-to-answer