Home Reference WMI Reference root CIMV2 Win32_PrinterDriver
 

Win32_PrinterDriver

A CIM_Service is a Logical Element that contains the information necessary to represent and manage the functionality provided by a Device and/or SoftwareFeature. A Service is a general-purpose object to configure and manage the implementation of functionality. It is not the functionality itself.

Quick Start

Properties

Most WMI properties are read-only. You can only read values but not change them. Few properties are also writeable. You can assign new values to those properties.

Writeable properties are marked with this icon:   

Caption

Data type String

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

ConfigFile

Data type String

The ConfigFile property contains the configuration file for this printer driver, (example: pscrptui.dll).

CreationClassName

Data type String

CreationClassName indicates the 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.

DataFile

Data type String

The DataFile property contains the data file for this printer driver, (example: qms810.ppd).

DefaultDataType

Data type String

The DefaultDataType property indicates the default data type for this printer driver, (example: EMF).

DependentFiles

Data type String

The DependentFiles property contains a list of dependent files for this printer driver.

Description

Data type String

The Description property provides a textual description of the object.

DriverPath

Data type String

The DriverPath property contains the path for this printer driver, (example: C:\drivers\pscript.dll).

  FilePath

Data type String

The FilePath property contains the path to the INF file being used, (Example: c:\temp\driver).

HelpFile

Data type String

The HelpFile property contains the help file for this printer driver, (example: pscrptui.hlp).

  InfName

Data type String

The InfName property contains the name of the INF file being used. The default is ‘ntprint.INF’. This will only be different if the drivers are provided directly by the manufacturer of the printer and not the operating system.

InstallDate

Data type DateTime

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.

MonitorName

Data type String

The MonitorName property contains the name of the of the monitor for this printer driver, (example: PJL monitor).

Name

Data type String

The Name property indicates the driver name for this printer. This is a compound key composed of the Name, Version and SupportedPlatform values.

OEMUrl

Data type String

The OEMUrl property provides a world wide web link to the printer manufacturer’s web site. 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

Started is a boolean indicating whether the service has been started ($true), or stopped ($false).

StartMode

Data type String

StartMode is a string value indicating whether the Service is automatically started by a System, Operating System, etc. or only started upon request.

'Automatic','Manual'

Status

Data type String

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.

'OK','Error','Degraded','Unknown','Pred Fail','Starting','Stopping','Service','Stressed','NonRecover','No Contact','Lost Comm'

  SupportedPlatform

Data type String

The SupportedPlatform property indicates the operating environments that the driver is intended for. Examples are ‘Windows NT x86’ or ‘Windows IA64’.

SystemCreationClassName

Data type String

The scoping System’s CreationClassName.

SystemName

Data type String

The name of the system that hosts this service

  Version

Data type UInt16

The Version property indicates the operating system version that the driver is intended for.

$Version_ReturnValue = 
@{
    0='Win9x'
    1='Win351'
    2='NT40'
    3='Win2k'
}

Methods

Examples

See Also

Help and Questions

  Community Content

You are cordially invited to add knowledge to this page. If you have sample code or additional information related to this WMI class, please share it. Use the comment form to send your information. We will edit and incorparate it into the reference library. Thank you!

Please do not use the comment form to submit questions. If you have questions or need assistance, visit our free forum: Help me with WMI.

Content last updated: 2013-12-27 12:21:44 (UTC).

Facebooktwittergoogle_pluspinterestlinkedinFacebooktwittergoogle_pluspinterestlinkedin