- WMI Library -
WMI Libraly > Win32_PrintJob Class

Win32_PrintJob Class

CIM_Job is a logical element representing a unit of work for a system, such as a print job. A job is distinct from a process in that a job can be scheduled.
Namespace value is root/CIMV2.
WMI Provider value is CIMWin32.


  • Caption
  • The Caption property is a short textual description (one-line string) of the object.

  • Color
  • The Color property indicates whether the document is to be printed in color or monochrome. Some color printers have the capability to print using true black instead of a combination of Yellow, Cyan, and Magenta. This usually creates darker and sharper text for documents. This option is only useful for color printers that support true black printing.

  • DataType
  • The DataType property indicates the format of the data for this print job. This instructs the printer driver to eithertranslate the data (generic text, PostScript, or PCL) before printing, or to print in a raw format (for graphics and pictures).
    Example: TEXT

  • Description
  • The Description property provides a textual description of the object.

  • Document
  • The Document property specifies the name of the print job. The user sees this name when viewing documents waiting to be printed.
    Example: Microsoft Word - Review.doc

  • DriverName
  • The DriverName property indicates the name of the printer driver used for the print job.

  • ElapsedTime
  • Length of time that the job has been executing.

  • HostPrintQueue
  • The HostPrintQueue property contains the name of the computer on which the print job was created.

  • InstallDate
  • The InstallDate property is datetime value indicating when the object was installed. A lack of a value does not indicate that the object is not installed.

  • JobId
  • The JobId property indicates the identifier number of the job. It is used by other methods as a handle to a single job spooling to the printer.

  • JobStatus
  • A free form string representing the job's status.

  • Name
  • The Name property defines the label by which the object is known. When subclassed, the Name property can be overridden to be a Key property.

  • Notify
  • User to be notified upon job completion or failure. This property is restricted to 16 characters under Windows 9x platforms.

  • Owner
  • User that submitted the job.

  • PagesPrinted
  • The PagesPrinted property specifies the number of pages that have been printed. This value may be zero if the print job does not contain page delimiting information.

  • PaperLength
  • The PaperLength property indicates the length of the paper.
    Example: 2794

  • PaperSize
  • The PaperSize property indicates the size of the paper.
    Example: A4 or Letter

  • PaperWidth
  • The PaperWidth property indicates the width of the paper.
    Example: 2159

  • Parameters
  • The Parameters property indicates optional parameters to send to the print processor. See the PrintProcessor member for more information.

  • PrintProcessor
  • The PrintProcessor property indicates the print processor service used to process the print job. A printer processor works in conjunction with the printer driver to provide additional translation of printer data for the printer, and can also be used to provide special options such as a title page for the job.

  • Priority
  • Priority indicates the urgency or importance of execution of a job.

  • Size
  • The Size property indicates the size of the print job.

  • SizeHigh
  • The SizeHigh property indicates the size of the print job if the Size property exceeds 4,294,967,295 bytes.

  • StartTime
  • Time that the job was begun.

  • Status
  • The Status property is a string indicating the current status of the object. Various operational and non-operational statuses can be defined. Operational statuses are "OK", "Degraded" and "Pred Fail". "Pred Fail" indicates that an element may be functioning properly but predicting a failure in the near future. An example is a SMART-enabled hard drive. Non-operational statuses can also be specified. These are "Error", "Starting", "Stopping" and "Service". The latter, "Service", could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is on-line, yet the managed element is neither "OK" nor in one of the other states.

  • StatusMask
  • The StatusMask property specifies a bitmap of the possible statuses relating to this print job.

  • TimeSubmitted
  • Time that the job was submitted.

  • TotalPages
  • The TotalPages property specifies the number of pages required to complete the job. This value may be zero if the print job does not contain page-delimiting information.

  • UntilTime
  • Time after which the job is invalid or should be stopped.


  • Pause
  • The Pause method pauses a job in a print queue. If the job was currently printing, no other job will be printed. If the job wasn't printing yet, another unpaused print job may begin printing. The method can return the following values:
    0 - Success.
    5 - Access denied.
    Other - For integer values other than those listed above, refer to the documentation on the Win32 error codes.

  • Resume
  • The Resume method continues a paused print job. The method can return the following values:
    0 - Success.
    5 - Access denied.
    Other - For integer values other than those listed above, refer to the documentation on the Win32 error codes.

    Example WQL

    SELECT * FROM Win32_PrintJob
    About this site information

    This contents is created by WMI having class information.
    WMI Environment is Windows Server 2008 R2 Enterprise Edition.

    This link is Microsoft documents for "Managing Windows with WMI".
    That is VB(Visual Basic) scripting sample.
    This link is Microsoft documents for "Advanced Programming Topics in WMI .NET".
    That is VB.net(Visual Basic .net) scripting sample.

    - WMI Library -

    WMI useful by VB,VB.Net,VC,VC.Net,VC#.Net,VBS(WSH),PowerShell for PC asset management, system monitoring and collecting hardware and software inventory.

    This website is created by Toh.
    Copyright(C) 1997-2016 WMI Fun !!. All rights reserved.
    ^ Go to the top...