Del via


Lpq

 

Applies To: Windows Vista, Windows Server 2008, Windows Server 2012, Windows 8

Displays the status of a print queue on a computer running Line Printer Daemon (LPD).

For examples of how this command can be used, see Examples.

Syntax

Lpq -S <ServerName> -P <PrinterName> [-l]

Parameters

Parameter

Description

-S <ServerName>

Specifies (by name or IP address) the computer or printer sharing device that hosts the LPD print queue with a status that you want to display. Required.

-P <PrinterName>

Specifies (by name) the printer for the print queue with a status that you want to display. Required.

-l

Specifies that you want to display details about the status of the print queue.

/?

Displays help at the command prompt.

Remarks

The -S and -P parameters are case sensitive and must be typed in upper-case letters.

Examples

This example shows how to display the status of the LaserPrinter1 printer queue on an LPD host at 10.0.0.45:

Lpq -S 10.0.0.45 -P LaserPrinter1

Additional references

Command-Line Syntax Key

Print Command Reference