Professional Windows Server 1002003 Security A Technical Reference [Electronic resources]

Roberta Bragg

نسخه متنی -صفحه : 415/ 336
نمايش فراداده

net print

Manages printer queues and print jobs.

Syntax

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

Options

computername

Indicates the print server

sharename

Indicates share name of the printer

job#

Represents identification number of print job

/hold

Holds a print job waiting in a queue and lets other jobs bypass it (use with job#)

/release

Releases a job that is on hold

/delete

Deletes a job from the queue

Examples

Display jobs in print queue of printer

HPLASERJ on print server

TEST :

net print \\test\hplaserj
Printers at \\test
Name               Job #   Size      Status
-----------------------------------------------------
hplaserj Queue    1 jobs             *Printer Active*
administrator     3  17500      Printing
The command completed successfully.

Look at details of job 3 earlier:

net print \\test 3
Print job detail
Job #               3
Status              Printing
Size                17500
Remark              Untitled - Notepad
Submitting user     administrator
Notify              administrator
Job data type       NT EMF 1.
Job parameters
Additional info
The command completed successfully.

Delete job 3 from the queue:

net print \\test 3 /delete
The command completed successfully.

Notes

  • To find the share name of your shared printer, type net share at the command line.

  • If a print server has multiple shared printers, each printer has its own print queue. However, jobs in different print queues on the same server can't have the same job ID number.

See Also

Printing