Reference for Win32_Printer
(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_Printer WMI class represents a device connected to a Windows computer system that is capable of reproducing a visual image on a medium.

Availability (Verfügbarkeit):

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

Properties (Attribute):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
AttributesYesYesYesYesYes
AvailabilityYesYesYesYesYes
AvailableJobSheetsYesYes---
AveragePagesPerMinuteYesYesYesYesYes
CapabilitiesYesYesYesYesYes
CapabilityDescriptionsYesYesYesYesYes
CaptionYesYesYesYesYes
CharSetsSupportedYesYes---
CommentYesYes---
ConfigManagerErrorCodeYesYesYesYesYes
ConfigManagerUserConfigYesYesYesYesYes
CreationClassNameYesYesYesYesYes
CurrentCapabilitiesYesYes---
CurrentCharSetYesYes---
CurrentLanguageYesYes---
CurrentMimeTypeYesYes---
CurrentNaturalLanguageYesYes---
CurrentPaperTypeYesYes---
DefaultYesYes---
DefaultCapabilitiesYesYes---
DefaultCopiesYesYes---
DefaultLanguageYesYes---
DefaultMimeTypeYesYes---
DefaultNumberUpYesYes---
DefaultPaperTypeYesYes---
DefaultPriorityYesYesYesYesYes
DescriptionYesYesYesYesYes
DetectedErrorStateYesYesYesYesYes
DeviceIDYesYesYesYesYes
DirectYesYes---
DoCompleteFirstYesYes---
DriverNameYesYesYesYesYes
EnableBIDIYesYes---
EnableDevQueryPrintYesYes---
ErrorClearedYesYesYesYesYes
ErrorDescriptionYesYesYesYesYes
ErrorInformationYesYes---
ExtendedDetectedErrorStateYesYes---
ExtendedPrinterStatusYesYes---
HiddenYesYes---
HorizontalResolutionYesYesYesYesYes
InstallDateYesYesYesYesYes
JobCountSinceLastResetYesYesYesYesYes
KeepPrintedJobsYesYes---
LanguagesSupportedYesYesYesYesYes
LastErrorCodeYesYesYesYesYes
LocalYesYes---
LocationYesYesYesYesYes
MarkingTechnologyYesYes---
MaxCopiesYesYes---
MaxNumberUpYesYes---
MaxSizeSupportedYesYes---
MimeTypesSupportedYesYes---
NameYesYesYesYesYes
NaturalLanguagesSupportedYesYes---
NetworkYesYes---
PaperSizesSupportedYesYesYesYesYes
PaperTypesAvailableYesYes---
ParametersYesYes---
PNPDeviceIDYesYesYesYesYes
PortNameYesYesYesYesYes
PowerManagementCapabilitiesYesYesYesYesYes
PowerManagementSupportedYesYesYesYesYes
PrinterPaperNamesYesYesYesYesYes
PrinterStateYesYesYesYesYes
PrinterStatusYesYesYesYesYes
PrintJobDataTypeYesYesYesYesYes
PrintProcessorYesYesYesYesYes
PriorityYesYes---
PublishedYesYes---
QueuedYesYes---
RawOnlyYesYes---
SeparatorFileYesYesYesYesYes
ServerNameYesYesYesYesYes
SharedYesYes---
ShareNameYesYesYesYesYes
SpoolEnabledYesYesYesYesYes
StartTimeYesYesYesYesYes
StatusYesYesYesYesYes
StatusInfoYesYesYesYesYes
SystemCreationClassNameYesYesYesYesYes
SystemNameYesYesYesYesYes
TimeOfLastResetYesYesYesYesYes
UntilTimeYesYesYesYesYes
VerticalResolutionYesYesYesYesYes
WorkOfflineYesYes---

Methods (Methoden):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
AddPrinterConnectionYesYes---
CancelAllJobsYesYes---
PauseYesYes---
PrintTestPageYesYes---
RenamePrinterYesYes---
ResetYesYesYesYesYes
ResumeYesYes---
SetDefaultPrinterYesYes---
SetPowerStateYesYesYesYesYes

Sample Code (Beispiel):

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

Links:

Link zur Original-Microsoft-Dokumentation