'Get-ADUser -Server: add port

I need to connect to port 636 of a server and I'm using the "-Server" option. The official doc says that you can put "Fully qualified directory server name and port", but it doesn't work for me, i tried to put "server:port" and "server port" and doesn't work. Which is the corret syntax? Thank you very much.



Solution 1:[1]

Thank you Theo and FID-FB. Posting your discussions as answer to help other community members.

Port 636 is an TCP port for LDAP SSL. To use the port 636, you need to enable the ADSI on the sever.

references: https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/service-overview-and-network-port-requirements

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 MadhurajVadde-MT