Link to home
Start Free TrialLog in
Avatar of newbie2239
newbie2239

asked on

portqry script

Looking to create a simple script that looks for all the servers in a srvs.txt and runs a report of which ports are open

Something like this - or better :)
for /f %%i in (svrs.txt) do portqry -n %%i -r 1:65535 -p both -l portlogfile.txt

The Goal is to make sure all the AD ports are open between DC's

TCP/UDP port 53 DNS
TCP/UDP port 88 for Kerberos Authentication
UDP 123 Windows Time
TCP 135 for RPC
UDP 137  For User and Computer Authentication
UDP 138  DFS, Group Policy
TCP/UDP 389 for LDAP
TCP/UDP 445 for SMB/CIFS/SMB2
TCP 636 LDAP SSL
TCP/UDP Dynamic - 1025 to 5000 ( Windows Server 2003)
TCP Port 3268 & 3269 for Global Catalog
TCP 5722  File Replication ( RPC, DFSR ( SYSVOL)
TCP/UDP Dynamic 49152 to 65535  for DCOM, RPC, EPM
ASKER CERTIFIED SOLUTION
Avatar of Randy Downs
Randy Downs
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial