大网数据广告活动
Windows排障命令

net print

· 52CE 我爱测

Reference article for the net print command. This command has been deprecated and isn't guaranteed to be supported in future releases of Windows.

Important: This command has been deprecated. However, you can perform many of the same tasks using the prnjobs command, Windows Management Instrumentation (WMI), PrintManagement in Powershell.

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

Syntax

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
help Displays help at the command prompt.
Remarks
  • The net print\\<computername> command displays information about print jobs in a shared printer queue. The following is an example of a report for all print jobs in a queue for a shared printer named LASER:

    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
    
  • 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 list the contents of the Dotmatrix print queue on the \Production computer, type:

net print \\Production\Dotmatrix

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

Related links

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 10/16/2017
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。