Select the product you need help with
Description of the Portqry.exe command-line utilityArticle ID: 310099 - View products that this article applies to. This article was previously published under Q310099 On This PageSUMMARY Portqry.exe is a command-line utility that you can use to
help troubleshoot TCP/IP connectivity issues. Portqry.exe runs on Windows
2000-based computers, on Windows XP-based computers, and on Windows Server 2003-based computers. The utility
reports the port status of TCP and UDP ports on a computer that you select.
Note Version 2 of Portqry.exe is now available. The Microsoft Download Center link at the end of this article has been updated to reflect the new version. Version 1.0 of Portqry.exe has been removed from the Microsoft Download Center. MORE INFORMATION Portqry.exe reports the status of a TCP/IP port in one of
the following three ways:
ExamplesThe following command tries to resolve "reskit.com" to an IP address and then queries TCP port 25 on the corresponding host:portqry -n reskit.com -p tcp -e 25 The following command tries to resolve
"169.254.0.11" to a host name and then queries TCP ports 143,110, and 25 (in
that order) on the host that you selected. This command also creates a log file
(Portqry.log) that contains a log of the command that you ran and its output.portqry -n 169.254.0.11 -p tcp -o 143,110,25 -l portqry.log The following command tries to resolve
my_server to an IP address and then queries the
specified range of UDP ports (135-139) in sequential order on the corresponding
host. This command also creates a log file
(my_server.txt) that contains a log of the command
that you ran and its output.portqry -n my_server -p udp -r 135:139 -l my_server.txt Portqry.exe is available for download from the
Microsoft Download Center. To download Portqry.exe, visit the following Microsoft Web site:http://www.microsoft.com/downloads/details.aspx?familyid=89811747-C74B-4638-A2D5-AC828BDC6983&displaylang=en Important The PortQueryUI tool provides a graphical user interface and is available for download. PortQueryUI has several features that can make using PortQry easier. To obtain the PortQueryUI tool, visit the following Microsoft Web site:
(http://www.microsoft.com/downloads/details.aspx?familyid=89811747-C74B-4638-A2D5-AC828BDC6983&displaylang=en)
http://download.microsoft.com/download/3/f/4/3f4c6a54-65f0-4164-bdec-a3411ba24d3a/PortQryUI.exe
For additional information about PortQry version 2.0, click the following article number to view the article in the Microsoft Knowledge Base:
(http://download.microsoft.com/download/3/f/4/3f4c6a54-65f0-4164-bdec-a3411ba24d3a/portqryui.exe)
832919
For additional information about related topics, click the following article numbers to view the articles in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/832919/
)
New features and functionality in PortQry version 2.0
310298
(http://support.microsoft.com/kb/310298/
)
How to use Portqry.exe to troubleshoot Microsoft Exchange Server connectivity issues
310456
(http://support.microsoft.com/kb/310456/
)
How to use Portqry to troubleshoot Active Directory connectivity issues
832017
(http://support.microsoft.com/kb/832017/
)
Port requirements for the Microsoft Windows Server System
325494
(http://support.microsoft.com/kb/325494/
)
Support WebCast: port scanning using PortQry
PropertiesArticle ID: 310099 - Last Review: December 3, 2007 - Revision: 7.8 APPLIES TO
| Article Translations
|


Back to the top








