netstat -an
netstat -ao
Export to file :
netstat -an |find /i "listening" > c:\ports.txt
You can then use PULIST with the FIND command:
C:\WINDOWS>pulist |find /i "1536"To see all open, established, closing and other used ports type:
C:\WINDOWS>netstat -a