Sample Microsoft Port Portqry Commands
October 6, 2012Sample Commands.
Test SQL
Portqry –n xxx.xxx.xxx.xxx –e 1494
test web port
Portqry -n host-names e 80
Test DNS:
Portqry -n xxx.xxx.xxx.xxx –e 53
Test FTP
Portqry -n xxx.xxx.xxx.xxx –p tcp -e 21
Test SNMP
Portqry -n xxx.xxx.xxx.xxx –p tcp -e 161
Portqry -n xxx.xxx.xxx.xxx –p udp -e 161
Portqry -n xxx.xxx.xxx.xxx –e 161 –p udp –cn “SNMP-String”
Test RPC
Portqry -n xxx.xxx.xxx.xxx –p udp -e 135