Net print


Applies To: Windows Server 2008,Windows Vista

Displays information about a specified printer queue or a specified print job, or controls a specified print job.

For examples of how to use this command, see the Examples section of this document.

Note

This command has been deprecated in Windows 7 and Windows Server 2008 R2. However, you can perform many of the same tasks using Prnjobs.vbs, Windows Management Instrumentation (WMI), or Windows PowerShell cmdlets. For more information, see Prnjobs.vbs, Windows Management Instrumentation (http://go.microsoft.com/fwlink/?LinkID=29991), Windows PowerShell (http://go.microsoft.com/fwlink/?LinkID=128426), and the TechNet Script Center Gallery (http://go.microsoft.com/fwlink/?LinkId=164635).

Syntax


Copy Code

Net print {\\<ComputerName>\<ShareName> |
\\<ComputerName> <JobNumber> [/hold | /release | /delete]} [help]

Parameters

Parameters

Description

\\<ComputerName>\<ShareName>

Specifies (by name) the computer and print queue about which you want to display information.

\\<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. Requires the <JobNumber> parameter.

<JobNumber>

Specifies the number of the print job you want to control. This number is assigned by the computer that hosts the print queue where 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. Required when using the \\<ComputerName> parameter.

[/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.

help

Displays help for the Net print command.

Remarks


Copy Code

Printers at \\PRODUCTION
Name              Job #      Size      Status
---------------------------------------------------------
LASER Queue       3 jobs               *Printer Active*
   USER1          84        93844      Printing
   USER2          85        12555      Waiting
   USER3          86        10222      Waiting


Copy Code

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

Examples

This example shows how to list the contents of the Dotmatrix print queue on the \\Production computer:


Copy Code

Net print \\Production\Dotmatrix

This example shows how to display information about job number 35 on the \\Production computer:


Copy Code

Net print \\Production 35

This example shows how to delay job number 263 on the \\Production computer:


Copy Code

Net print \\Production 263 /hold

This example shows how to release job number 263 on the \\Production computer:


Copy Code

Net print \\Production 263 /release

Additional references

Command-Line Syntax Key

Print Command Reference