This diagnostic utility is used to obtain the status of a print queue on a host running the LPD server. To use the lpq command from the Windows NT command prompt, you must first install the Microsoft TCP/IP Printing service from the Network option in Control Panel.
Syntax
lpq -SServer -PPrinter [-l]
Parameters
-SServer
Specifies the name of the host that has the printer attached to it.
-PPrinter
Specifies the name of the printer for the desired queue.
-l
Specifies that a detailed status should be given.