Net print

Displays information about a specified print queue, displays information about all print queues hosted by a specified print server, displays information about a specified print job, or controls a specified print job. Used without parameters, net print displays command-line help for the net print command.

To display information about a specified print queue or about all print queues hosted by a specified print server

Syntax

net print **\\ComputerName[\**QueueName]

Parameters

\\ ComputerName   : Required. Specifies, by name, the computer that hosts the print queue about which you want to display information.

\ QueueName   : Specifies, by name, the print queue for which you want to display information. If you specify a computer but you do not specify a queue, information about all print queues on the specified computer is displayed.

net help net print   : Displays help for the net print command.

Remarks

  • Net print displays several types of information about print queues. The following is an example of a report for all print queues on the server named Production:

    Printer queues at \\PRODUCTION
Name              Job #      Size      Status
---------------------------------------------------------
LASER Queue       1 jobs               *Queue Active*
     USER1          84        0      Spooling

Examples

To list the contents of the Dotmatrix print queue on the \\Production computer, type:

net print \\production\dotmatrix

To display information about or control a specified print job

Syntax

net print [\\ComputerName] JobNumber [{/hold | /release | /delete}]

Parameters

\\ ComputerName   : Specifies, by name, the computer that hosts the print job you want to control. If you do not specify a computer, the local computer is assumed.

JobNumber   : Required. Specifies the number of the print job you want to control. This number is assigned by the computer that hosts the print queue to which the print job is sent. After a computer assigns a number to a print job, that number is not assigned to any other print jobs in any queue hosted by that computer.

{ /hold | /release | /delete } : Specifies the action to take with the print job. The /hold parameter delays the job, allowing other print jobs to bypass it until it is released. The /release parameter releases a print job that has been delayed. The /delete parameter removes a print job from a print queue. If you specify a job number but do not specify any action, information about the print job is displayed.

net help net print   : Displays help for the net print command.

Remarks

  • The following is an example of a report for a print job:

    Job #            35
    

Status Waiting Size 3096 Remark Submitting user USER2 Notify USER2 Job data type Job parameters Additional info

Examples

To display information about job number 35 on the \\Production computer, type:

net print \\production 35

To delay job number 263 on the \\Production computer, type:

net print \\production 263 /hold

To release job number 263 on the \\Production computer, type:

net print \\production 263 /release

Formatting legend

Format

Meaning

Italic

Information that the user must supply

Bold

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

Net services overview

Command-line reference A-Z