portqry -n target [-p protocol] [-e port | -r start-end] [-o port1,port2] [-q] [-v] [-l logfile]
The PortQry command-line version uses several parameters to refine searches: Description Target computer name or IP address. portqry -n 192.168.1.1 -p Protocol to use (TCP, UDP, or BOTH). portqry -n server1 -p udp -e Specific port (endpoint) to query. portqry -n server1 -e 80 -r Range of ports to query. portqry -n server1 -r 1:1024 -o Multiple specific ports in a specific order. portqry -n server1 -o 135,445 -i Launches Interactive Mode for repetitive tasks. portqry -i -local Analyzes port usage on the local machine. portqry -local PortQry vs. PortQryUI
) that does not require a formal installation—you simply download and run it from a command prompt. Task Command Example Check a specific TCP port portqry -n servername -e 80 Check multiple UDP ports portqry -n servername -p UDP -o 37,88,135 Check a range of ports portqry -n 10.0.0.1 -r 21:445 Verify Active Directory LDAP portqry -n myserver -p udp -e 389 List local port usage portqry -local PortQryUI: The Graphical Interface 11 sites Using Portqry for AD Connectivity Issues | PDF - Scribd How to Use Portqry to Troubleshoot Active Directory Connectivity Issues * View products that this article applies to. This article... Scribd Using the PortQry command-line tool - Windows Server Feb 12, 2026 —
portqry -n 192.168.1.100 -p tcp -r 80,443,3389
Armed with this new information, John worked with the network team to open the required port on the firewall. After the change was made, he re-ran the PortQry command:
echo [%date% %time%] Starting port check on %TARGET% >> %LOGFILE% portqry -n %TARGET% -p tcp -o %PORTS% -v >> %LOGFILE%
John, a network administrator, was troubleshooting a connectivity issue between a Windows server and a remote application. The server was supposed to communicate with the application over a specific port, but for some reason, the connection wasn't happening.
Portqry Windows
portqry -n target [-p protocol] [-e port | -r start-end] [-o port1,port2] [-q] [-v] [-l logfile]
The PortQry command-line version uses several parameters to refine searches: Description Target computer name or IP address. portqry -n 192.168.1.1 -p Protocol to use (TCP, UDP, or BOTH). portqry -n server1 -p udp -e Specific port (endpoint) to query. portqry -n server1 -e 80 -r Range of ports to query. portqry -n server1 -r 1:1024 -o Multiple specific ports in a specific order. portqry -n server1 -o 135,445 -i Launches Interactive Mode for repetitive tasks. portqry -i -local Analyzes port usage on the local machine. portqry -local PortQry vs. PortQryUI portqry windows
) that does not require a formal installation—you simply download and run it from a command prompt. Task Command Example Check a specific TCP port portqry -n servername -e 80 Check multiple UDP ports portqry -n servername -p UDP -o 37,88,135 Check a range of ports portqry -n 10.0.0.1 -r 21:445 Verify Active Directory LDAP portqry -n myserver -p udp -e 389 List local port usage portqry -local PortQryUI: The Graphical Interface 11 sites Using Portqry for AD Connectivity Issues | PDF - Scribd How to Use Portqry to Troubleshoot Active Directory Connectivity Issues * View products that this article applies to. This article... Scribd Using the PortQry command-line tool - Windows Server Feb 12, 2026 — portqry -n target [-p protocol] [-e port |
portqry -n 192.168.1.100 -p tcp -r 80,443,3389 portqry -n server1 -e 80 -r Range of ports to query
Armed with this new information, John worked with the network team to open the required port on the firewall. After the change was made, he re-ran the PortQry command:
echo [%date% %time%] Starting port check on %TARGET% >> %LOGFILE% portqry -n %TARGET% -p tcp -o %PORTS% -v >> %LOGFILE%
John, a network administrator, was troubleshooting a connectivity issue between a Windows server and a remote application. The server was supposed to communicate with the application over a specific port, but for some reason, the connection wasn't happening.