Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2


Displays the status of a print queue on a computer running Line Printer Daemon (LPD). Used without parameters, lpq displays command-line help for the lpq command.


lpq -S ServerName -P PrinterName [-l]

  • -S ServerName
    Required. Specifies, by name, the computer that hosts the print queue whose status you want to display.
  • -P PrinterName
    Required. Specifies, by name, the printer for the print queue whose status you want to display.
  • -l
    Specifies that you want to display details about the status of the print queue.
  • /?
    Displays help at the command prompt.

Formatting legend

Format Meaning


Information that the user must supply


Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

See Also


Command-line reference A-Z
Command shell overview