JSI Tip 1456. The Net Print command.

Jerold Schulman

July 8, 1999

1 Min Read
ITPro Today logo in a gray background | ITPro Today


The Net Print command can be used to display and control print jobs and printer queues. The syntax is:

net print \computernamesharename

net print [\computername] job# [/hold | /release | /delete]

Where:

Parameter

D e s c r i p t i o n

computername

 Specifies the name of the print Server

sharename

 Specifies a specific printer queue on the Server

job#

 A unique number assigned to a print job on the Server

/hold

 Holds the job# in the queue. 

/release

 Releases a job# that was held. 

/delete

 Deletes a job# from the queue. 

net print \JSI002HP1600C displays:

Printers at \JSI002Name                           Job #     Size           Status-----------------------------------------------------------------------hp1600c Queue              3 jobs                      *Printer Active*     JERRY                      34       754            Printing     JERRY                      35    125536            Waiting     Jennifer                   36       850            Waiting     Jennifer                   37      3455            WaitingThe command completed successfully.

To display job 35, type net print \JSI002 35

Print job detailJob #               35Status              WaitingSize                125536Remark              UntitledSubmitting user     JERRYNotify              JERRYJob data type       NT EMF 1.Job parametersAdditional infoThe command completed successfully.

To hold job 36, type net print \JSI002 36 /hold

To release job 36, type net print \JSI002 36 /release

To delete job 37, type net print \JSI002 37 /delete

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like