Information Technology Reference
In-Depth Information
8-10. Printing Test Pages
Problem
You want to print a test page to a printer hosted on either a local or a remote server.
Solution
Using a Graphical User Interface
1.
Open the Printers and Faxes administrative window.
2.
Right-click the printer for which you want to print a test page (you can choose a local or
remote computer) and select Properties.
3.
Select the General tab if it is not already selected.
4.
Click the Print Test Page button.
Using a Command-Line Interface
You can print a test page either locally or remotely using the following syntax:
> rundll32.exe printui.dll, PrintUIEntry /k /c
<MachineName>
/n
<PrinterName>
Here is a description of the parameters:
/k
: Required parameter that specifies that you want to print a test page.
/c
MachineName
: Optional parameter that specifies the name of the server or workstation
from which you want to print the test page. If omitted, the local system will be assumed.
/n
PrinterName
: Required parameter that specifies the name of the printer for which you
want to print a test page. Enclose the printer name in quotation marks.
As an example, to print a test page for the HP LaserJet 1300 PCL 5e printer hosted on server
Printer4, run the following command:
> rundll32.exe printui.dll, PrintUIEntry /k /c Printer4 /n "HP LaserJet 1300 PCL 5e"
Using VBScript
You can print a test page using VBScript by executing the
prnqctl.vbs
script, located in the
%systemroot%\system32
directory. Use the following syntax:
> cscript prnqctl.vbs -e [-s <
RemoteComputer
>]
-p <
PrinterName
> [-u <
UserName
> -w <
Password
>]
Here is a description of the parameters:
-e
: Required parameter that specifies that you want to print a test page.