Wmi Printer Serial Number



If the printer is a network printer, Windows doesn't magically know information about it. So first, you need to define exactly what you mean by 'printer' and then you need to go do some investigation on how.you. can gather this info because neither Windows or ConfigMgr know how to this for any network connected devices or printers even - why. Hello everyone, First, I'd like to know if the serial number of a printer exists 'in' the hardware (like it does with a hard disk: this information is available in WMI in the Win32DiskDrive table, the field SerialNumber ) or it's just a number placed on the ticket stuck on the printer? Serial Number: systemserialnumber UUID: uuidserial Serial Number: baseboardserial Serial Number: chassisserial Windows. For Win32 WMI classes, the value on the left is the name by which it is stored in the Serial Number cmdbserialnumber table. The value on the right is the WMI value. I look for a WMI query to get this informations. But I get only: WMI Win32SerialPort COM1 RS232 Serial Port COM2 RS232 Serial Port or WMI MSSerialPortName COM1 ACPI PNP0501 10 COM2 ACPI PNP0501 20 COM4 FTDIBUS VID0403+PID6001+A3000zmHA 00000 what can I do to get all virtual ports? I don't believe you can get a printer's serial number from Windows. Windows just has drivers installed. The serial number is part of the printer's hardware. You certainly can't pull any info about a printer from a computer's BIOS.

-->

The Win32_PrinterDriverWMI class represents the drivers for a Win32_Printer instance.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties, but excludes methods. For reference information about methods, see the table of methods in this topic.

Syntax

Members

The Win32_PrinterDriver class has these types of members:

Methods

The Win32_PrinterDriver class has these methods.

MethodDescription
AddPrinterDriverCreates a new printer driver.
StartServiceStarts print service.
StopServiceStops print service.

Properties

The Win32_PrinterDriver class has these properties.

Caption

Data type: string

Access type: Read-only

Qualifiers: MaxLen (64), DisplayName ('Caption')

Short description of the object—a one-line string.

This property is inherited from CIM_ManagedSystemElement.

ConfigFile

Data type: string

Access type: Read-only

Configuration file for this printer driver.

Example: 'pscrptui.dll'

CreationClassName

Data type: string

Access type: Read-only

Qualifiers: CIM_Key, DisplayName ('Class Name')

Name of the class or the subclass used in the creation of an instance. When used with the other key properties of this class, this property allows all instances of this class and its subclasses to be uniquely identified.

This property is inherited from CIM_Service.

DataFile

Data type: string

Access type: Read-only

Qualifiers: ModelCorrespondence (CIM_DataFile.FileName)

Data file for this printer driver.

Example: 'qms810.ppd'

DefaultDataType

Data type: string

Access type: Read-only

Default data type for this printer driver.

Example: 'EMF'

DependentFiles

Data type: string array

Wmi Printer Serial Number

Access type: Read-only

Array of dependent files for this printer driver.

Description

Data type: string

Access type: Read-only

Qualifiers: DisplayName ('Description')

Comment that describes the link.

This property is inherited from CIM_ManagedSystemElement.

DriverPath

Data type: string

Access type: Read-only

Qualifiers: ModelCorrespondence (CIM_DataFile.Path)

Path for this printer driver.

Example: 'C:driverspscript.dll'

FilePath

Data type: string

Access type: Read/write

Path to the INF file being used.

Example: 'c:tempdriver'

HelpFile

Data type: string

Access type: Read-only

Help file for this printer driver.

Example: 'pscrptui.hlp'

InfName

Data type: string

Serial

Access type: Read/write

Name of the INF file being used. The default is to use an operating system provided printer INF file. A different file name is used if the driver is provided directly by the manufacturer of the printer and not the operating system.

InstallDate

Data type: datetime

Access type: Read-only

Qualifiers: MappingStrings ('MIF.DMTF|ComponentID|001.5'), DisplayName ('Install Date')

Date and time the object is installed. This property does not require a value to indicate that the object is installed.

This property is inherited from CIM_ManagedSystemElement.

MonitorName

Data type: string

Access type: Read-only

Name of the monitor for this printer driver.

Example: 'PJL monitor'

Name

Data type: string

Access type: Read-only

Qualifiers: Key

Driver name for this printer. This is a compound key composed of the Name, Version, and SupportedPlatform values.

Computer

This property is inherited from CIM_ManagedSystemElement and overrides the Name definition in that class.

OEMUrl

Data type: string

Access type: Read-only

World Wide Web (WWW) link to the printer manufacturer's website. Note that this property is not populated when the Win32.inf file is used, and is only applicable for drivers provided directly from the manufacturer.

Started

Data type: boolean

Access type: Read-only

Qualifiers: DisplayName ('Started')

If TRUE, the service is started. If FALSE, the service is stopped.

This property is inherited from CIM_Service.

StartMode

Data type: string

Access type: Read-only

Qualifiers: DisplayName ('Start Mode')

Start mode of the service is automatically started by an operating system, or only started when requested.

This property is inherited from CIM_Service.

The following are possible values:

'Automatic'
'Manual'

Automatic ('Automatic')

Manual ('Manual')

Status

Data type: string

Access type: Read-only

Printer

Qualifiers: MaxLen (10), DisplayName ('Status')

Current status of the object. Various operational and nonoperational statuses can be defined. Operational statuses include: 'OK', 'Degraded', and 'Pred Fail' (an element, such as a SMART-enabled hard disk drive, may be functioning properly but predicting a failure in the near future). Nonoperational statuses include: 'Error', 'Starting', 'Stopping', and 'Service'. The latter, 'Service', can apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is online, yet the managed element is neither 'OK' nor in one of the other states.

This property is inherited from CIM_ManagedSystemElement.

Get Serial Number Wmi

Values include the following:

OK ('OK')

Error ('Error')

Degraded ('Degraded')

Unknown ('Unknown')

Pred Fail ('Pred Fail')

Starting ('Starting')

Stopping ('Stopping')

Service ('Service')

Stressed ('Stressed')

NonRecover ('NonRecover')

No Contact ('No Contact')

Lost Comm ('Lost Comm')

SupportedPlatform

Wmi Usb Printer Serial Number

Data type: string

Access type: Read/write

Operating environments that the driver is intended for.

Example: 'Windows NT x86'.

SystemCreationClassName

Data type: string

Access type: Read-only

Qualifiers: Propagated ('CIM_System.CreationClassName'), CIM_Key, DisplayName ('System Class Name')

Scoping system's creation class name.

This property is inherited from CIM_Service.

SystemName

Data type: string

Access type: Read-only

Qualifiers: Propagated ('CIM_System.Name'), CIM_Key, DisplayName ('System Name')

Name of the system that hosts this service.

This property is inherited from CIM_Service.

Version

Data type: uint16

Access type: Read/write

Operating system version for the printer driver.

3

Wmi printer serial numbers

Win2k

Remarks

The Win32_PrinterDriver class is derived from CIM_Service which derives from CIM_LogicalElement.

Users can uninstall a printer driver by deleting a corresponding instance of this class. To do so, the calling process must have the SeLoadDriverPrivilege privilege set to delete an instance of this class.

Get Computer Serial Number Wmi

Examples

The Manage Printer and Printer Drivers VBScript sample manages printer drivers and printer ports.

The following discussion on the TechNet forums describes how to create a printer and upload drivers from a server.

The following VBScript sample lists all the printer drivers that have been installed on a computer.

Requirements

RequirementValue
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
RootCIMV2
MOF
Win32_Printer.mof
DLL
CIMWin32.dll

See also