Print Management Guide - Print Command Reference
Command | Description |
---|---|
Lpq | Displays the status of a print queue on a computer running Line Printer Daemon (LPD). |
Lpr | Sends a file to a computer or printer sharing device running the Line Printer Daemon (LPD) service in preparation for printing. |
Net print | Displays information about a specified printer queue, displays information about a specified print job, or controls a specified print job. |
Sends a text file to a printer. | |
Prncnfg.vbs | Configures or displays configuration information about a printer. |
Prndrvr.vbs | Adds, deletes, and lists printer drivers. |
Prnjobs.vbs | Pauses, resumes, cancels, and lists print jobs. |
Prnmngr.vbs | Adds, deletes, and lists printers or printer connections, in addition to setting and displaying the default printer. |
Prnport.vbs | Creates, deletes, and lists standard TCP/IP printer ports, in addition to displaying and changing port configuration. |
Prnqctl.vbs | Prints a test page, pauses or resumes a printer, and clears a printer queue. |
Pubprn.vbs | Publishes a printer to the Active Directory directory service. |
Rundll32 printui.dll,PrintUIEntry | Enables you to automate the installation and configuration of printers using scripts or the command prompt. |
To print a text file or display the contents of a print queue.
To print the text file Autoexec.bat to a printer on parallel port LPT2:
print /d:LPT2: C:\autoexec.bat
To display or control print jobs and printer queues.
Examples:
To view the print queue of MyPrinter1 on print server W2KPRN1:
net print \\W2KPRN1\MyPrinter1
To delete print job number 2 on MyPrinter1 on print server W2KPRN1:
net print \\W2KPRN1 2/delete
To connect to, or disconnect from, a shared printer.
Examples:
To redirect print output for the LPT1 port to MyPrinter1 on print server W2KPRN1:
net use LPT1: \\W2KPRN1\MyPrinter1
To display information about the LPT1 port:
net use LPT1:
To start the print spooler service.
Example:
To start the Print Spooler service:
net start spooler
To stop the print spooler service.
Example:
To stop the Print Spooler service:
net stop spooler