Created
November 16, 2022 22:35
-
-
Save ScriptingPro/f60a0ad3f1b5260cb66b38287b2fdd4b to your computer and use it in GitHub Desktop.
Check if necessary AD Ports are Open using PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$TargetDC = “dc1.contoso.com” | |
Test-NetConnection -ComputerName $TargetDC -Port 88 # Kerberos | |
Test-NetConnection -ComputerName $TargetDC -Port 135 # RPC | |
Test-NetConnection -ComputerName $TargetDC -Port 139 # NetBIOS SS | |
Test-NetConnection -ComputerName $TargetDC -Port 389 # LDAP | |
Test-NetConnection -ComputerName $TargetDC -Port 636 # LDAPS | |
Test-NetConnection -ComputerName $TargetDC -Port 445 # SMB Netlogon | |
Test-NetConnection -ComputerName $TargetDC -Port 464 # Kerberos Password Change | |
Test-NetConnection -ComputerName $TargetDC -Port 3268 # GC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment