Information Technology Reference
In-Depth Information
8-4. Listing All TCP/IP Ports and Displaying
Configuration Information
Problem
You want to list all TCP/IP ports on a print server and display configuration information
regarding specific ports.
Solution
The graphical user interface and command-line interface solutions are limited, because you
must select properties of each port individually. We recommend the VBScript solution described
in this recipe, because it allows you to easily see all the configuration information.
Using a Graphical User Interface
1.
Open the Printers and Faxes administrative window.
2.
Select File
Server Properties.
3.
Select the Ports tab.
4.
Select the desired TCP/IP port, and then click the Configure Port button to view its con-
figuration information.
Using a Command-Line Interface
Open a command-prompt window by selecting Start
Run and typing cmd in the dialog box.
Then type the following code into the command-prompt window to invoke the Print Properties
window with the Ports tab selected:
> rundll32 printui.dll,PrintUIEntry /s /t1 /n \\PrintServerName
The following are the parameters in the preceding command:
/s : Displays server properties.
/t # : Defines the interface page or tab on which to start. Replace the pound sign ( # ) with the
appropriate integer.
/n : Provides the printer name, which immediately follows the parameter and should be
formatted in UNC notation.
For example, to invoke the print server properties for a server named Print3, type the
following:
> rundll32 printui.dll,PrintUIEntry /s /t1 /n \\Print3
Select the desired TCP/IP port, and then click the Configure Port button to view its config-
uration information.
Search WWH ::




Custom Search