Reference for Win32_PrintJob
(Diese Seite wurde noch nicht auf das neue Layout umgestellt!)

Select by Class Type Search by Keyword
Show all classes

Category (Kategorie):

Printing

Description (Beschreibung):

The Win32_PrintJob WMI class represents a print job generated by a Windows application. Any unit of work generated by the print command of an application running on a Windows system is a descendent (or member) of this class.

Availability (Verfügbarkeit):

WMI Class NameWindows Server 2003Windows XP ProfessionalWindows 2000Windows NT 4.0Windows 98
Win32_PrintJobYesYesYesYesYes

Properties (Attribute):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
CaptionYesYesYesYesYes
DataTypeYesYesYesYesYes
DescriptionYesYesYesYesYes
DocumentYesYesYesYesYes
DriverNameYesYesYesYesYes
ElapsedTimeYesYesYesYesYes
HostPrintQueueYesYesYesYesYes
InstallDateYesYesYesYesYes
JobIdYesYesYesYesYes
JobStatusYesYesYesYesYes
NameYesYesYesYesYes
NotifyYesYesYesYesYes
OwnerYesYesYesYesYes
PagesPrintedYesYesYesYesYes
ParametersYesYesYesYesYes
PrintProcessorYesYesYesYesYes
PriorityYesYesYesYesYes
SizeYesYesYesYesYes
StartTimeYesYesYesYesYes
StatusYesYesYesYesYes
StatusMaskYesYesYesYesYes
TimeSubmittedYesYesYesYesYes
TotalPagesYesYesYesYesYes
UntilTimeYesYesYesYesYes

Methods (Methoden):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
PauseYesYes---
ResumeYesYes---

Sample Code (Beispiel):

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_PrintJob")
For Each objItem in colItems
    Wscript.Echo "Caption: " & objItem.Caption
Next

Links:

Link zur Original-Microsoft-Dokumentation