Skip to content

Instantly share code, notes, and snippets.

@ScriptingPro
Created November 16, 2022 22:35
Show Gist options
  • Save ScriptingPro/f60a0ad3f1b5260cb66b38287b2fdd4b to your computer and use it in GitHub Desktop.
Save ScriptingPro/f60a0ad3f1b5260cb66b38287b2fdd4b to your computer and use it in GitHub Desktop.
Check if necessary AD Ports are Open using PowerShell
$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