WMI Fun !! 〜 WMIに興味がある方・システム管理者必見!! 〜
 WMI Step|WMI Sample|WMI Reference|WMI Library|My Let'snote|Personal|Link|About WMI Fun !!

WMI Fun !! > WMI Library > Win32_PrinterConfiguration クラス

Panasonic Let'snoteを長年愛用しています、その理由はMy Let'snoteで…
インクを買うよりもしかしたら安い?インクジェット複合機HP Photosmart 5510
白いご飯や日本酒にもとても合うにしんのきりこみがマイブームです

Win32_PrinterConfiguration クラス - WMI Library

Win32_PrinterConfiguration クラスの説明

Setting クラスは、1 つ以上の ManagedSystemElement の構成関連パラメーターおよび操作パラメーターを表しています。ManagedSystemElement にはそれに関連付けられた複数の設定オブジェクトがあります。要素パラメーターの現在の操作可能値は、要素自体のプロパティ、またはその関連付けのプロパティによって反映されます。これらのプロパティでは、設定オブジェクトで同じ値を持つ必要はありません。たとえば、モデムの設定では 56 KB/秒ボー レートですが、操作は 19.2 KB/秒で行われます。
WMI Providerは、CIMWin32です。
UUIDは、{8502C4E9-5FBB-11D2-AAC1-006008C78BC7}です。


プロパティ リスト

BitsPerPel

Data Type: uint32
Access Type: Read Only

The BitsPerPel property contains the number of bits per pixel for the output device Win32 printer. This member is used by display drivers and not by printer drivers.
Example: 8.
This property has been deprecated because it is not applicable to printers. There is no replacement value.



Caption

Data Type: string
Access Type: Read Only

CIM_Setting オブジェクトの簡単な説明 (1 行分の文字列) です。



Collate

Data Type: boolean
Access Type: Read Only

The Collate property specifies whether to collate the pages that are printed. To collate is to print out the entire document before printing the next copy, as opposed to printing out each page of the document the required number times. This property is ignored unless the printer driver indicates support for collation.
Values: TRUE or FALSE. If TRUE, the printer collates all documents.



Color

Data Type: uint32
Access Type: Read Only

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.



Copies

Data Type: uint32
Access Type: Read Only

The Copies property indicates the number of copies to be printed. The printer driver must support printing multi-page copies.
Example: 2



Description

Data Type: string
Access Type: Read Only

CIM_Setting オブジェクトの説明です。



DeviceName

Data Type: string
Access Type: Read Only

The DeviceName property specifies the friendly name of the printer. This name is unique to the type of printer and may be truncated because of the limitations of the string from which it is derived.
Example PCL/HP LaserJet



DisplayFlags

Data Type: uint32
Access Type: Read Only

The DisplayFlags property contains two bits of information about the display. This member communicates whether the display device is monochrome or colored, and interlaced or non-interlaced, by masking its value with the DM_GRAYSCALE and DM_INTERLACED masks respectively.
This property has been deprecated because it is not applicable to printers. There is no replacement value.



DisplayFrequency

Data Type: uint32
Access Type: Read Only

The DisplayFrequency property indicates the refresh frequency of the display The refresh frequency for a monitor is the number of times the screen is redrawn per second.
This property has been deprecated because it is not applicable to printers. There is no replacement value.



DitherType

Data Type: uint32
Access Type: Read Only

The DitherType property indicates the dither type of the printer. This member can assume predefined values of 1 to 5, or driver-defined values from 6 to 256. Line art dithering is a special dithering method that produces well defined borders between black, white, and gray scalings. It is not suitable for images that include continuous graduations in intensity and hue such as scanned photographs.



DriverVersion

Data Type: uint32
Access Type: Read Only

The DriverVersion property indicates the version number of the Win32 printer driver. The version numbers are created and maintained by the driver manufacturer.



Duplex

Data Type: boolean
Access Type: Read Only

The Duplex property indicates whether printing is done on one or both sides.
Values: TRUE or FALSE. If TRUE, printing is done on both sides.



FormName

Data Type: string
Access Type: Read Only

The FormName property indicates the name of the form used for the print job. This property is used only on Windows NT/Windows 2000 systems.
Example: Legal



HorizontalResolution

Data Type: uint32
Access Type: Read Only

The HorizontalResolution property indicates the print resolution along the X axis (width) of the print job. This value is only set when the PrintQuality property of this class is positive and is similar to the XResolution property.



ICMIntent

Data Type: uint32
Access Type: Read Only

The ICMIntent (Image Color Matching Intent) property indicates the specific value of one of the three possible color matching methods (called intents) that should be used by default. ICM applications establish intents by using the ICM functions. This property can assume predefined values of 1 to 3, or driver-defined values from 4 to 256. Non-ICM applications can use this value to determine how the printer handles color printing jobs.



ICMMethod

Data Type: uint32
Access Type: Read Only

The ICMMethod (Image Color Matching Method) property specifies how ICM is handled. For a non-ICM application, this property determines if ICM is enabled or disabled. For ICM applications, the system examines this property to determine which part of the computer system handles ICM support.



LogPixels

Data Type: uint32
Access Type: Read Only

The LogPixels property contains the number of pixels per logical inch. This member is valid only with devices that work with pixels (this excludes devices such as printers).
This property has been deprecated because it is not applicable to printers. There is no replacement value.



MediaType

Data Type: uint32
Access Type: Read Only

The MediaType property specifies the type of media being printed on. The property can be set to a predefined value or a driver-defined value greater than or equal to 256. For Windows 95 and later; Windows 2000.



Name

Data Type: string
Access Type: Read Only

The Name property indicates the name of the printer with which this configuration is associated.



Orientation

Data Type: uint32
Access Type: Read Only

The Orientation property indicates the printing orientation of the paper.



PaperLength

Data Type: uint32
Access Type: Read Only

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



PaperSize

Data Type: string
Access Type: Read Only

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



PaperWidth

Data Type: uint32
Access Type: Read Only

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



PelsHeight

Data Type: uint32
Access Type: Read Only

The PelsHeight property indicates the height of the displayable surface.
This property has been deprecated because it is not applicable to printers. There is no replacement value.



PelsWidth

Data Type: uint32
Access Type: Read Only

The PelsWidth property indicates the width of the displayable surface.
This property has been deprecated because it is not applicable to printers. There is no replacement value.



PrintQuality

Data Type: uint32
Access Type: Read Only

The PrintQuality property indicates one of four quality levels of the print job. If a positive value is specified, the quality is measured in dots per inch.
Example: Draft



Scale

Data Type: uint32
Access Type: Read Only

The Scale property specifies the factor by which the printed output is to be scaled. For example a scale of 75 reduces the print output to 3/4 its original height and width.



SettingID

Data Type: string
Access Type: Read Only

CIM_Setting オブジェクトを認識する識別子です。



SpecificationVersion

Data Type: uint32
Access Type: Read Only

The SpecificationVersion property indicates the version number of the initialization data for the device associated with the Win32 printer.



TTOption

Data Type: uint32
Access Type: Read Only

The TTOption property specifies how TrueType(r) fonts should be printed. There are 3 possible values:
Bitmap - Prints TrueType fonts as graphics. This is the default action for dot-matrix printers.
Download - Downloads TrueType fonts as soft fonts. This is the default action for printers that use the Printer Control Language (PCL).
Substitute - Substitutes device fonts for TrueType fonts. This is the default action for PostScript(r) printers.



VerticalResolution

Data Type: uint32
Access Type: Read Only

The VerticalResolution property indicates the print resolution along the Y axis (height) of the print job. This value is only set when the PrintQuality property of this class is positive, and is similar to the YResolution property.



XResolution

Data Type: uint32
Access Type: Read Only

The XResolution property has been deprecated to theHorizontalResolution property. Please refer to the description of that property.



YResolution

Data Type: uint32
Access Type: Read Only

The YResolution property has been deprecated to theVerticalResolution property. Please refer to the description of that property.




メソッド リスト

Win32_PrinterConfigurationクラスにはメソッドはありません。


WQL サンプル

SELECT * FROM Win32_PrinterConfiguration

VB6/VBS
SWbemServicesクラスのExecQueryメソッドからWQLを実行可能です。
Set PrcSet = Service.ExecQuery("SELECT * FROM Win32_PrinterConfiguration")

VB.Net
ObjectQueryクラスのQueryStringプロパティにWQLを設定し、ManagementObjectSearcherクラスのGetメソッドからWQLを実行可能です。
Searcher.Query.QueryString = "SELECT * FROM Win32_PrinterConfiguration"
PrcSrc = Searcher.Get

PowerShell
Get-WmiObjectコマンドレットのqueryオプションを指定しWQLを実行可能です。
Get-WmiObject -query "SELECT * FROM Win32_PrinterConfiguration"


このサイトの情報について

このコンテンツはWMIの各コンポーネントが持っているWin32_PrinterConfigurationクラス情報を参照・抽出しリファレンスとして作成・提供しています。
参照したWMIの名前空間はroot/CIMV2、書き出し環境はWindows Server 2008 R2になります。

WMIの使い方(VB6, VBS, VBA, VB.NET, VC#, PowerShellを対象)に関してはWMI Stepも参考にしてみてください。(WMI初心者・入門編としてもおすすめです。) 各種言語を使用したWMIを使用するたたき台としてソーステンプレートも公開しています。プログラム/スクリプト作成時に役立てば…と思っています。

今後各WMI ClassをサポートしているOSの種類を掲載する予定です。
予定OS: Windows XP/Windows Vista/Windows 7/Windows Server 2003/Windows Server 2003 R2/Windows Server 2008/Windows Server 2008 R2


ご意見・ご要望・ご感想をこちらのアンケートからお待ちしています
WMIに関して調べているけど探し物が見つからない…という方はSearch Resultから検索してみましょう!!

MCP(Microsoft Certified Professional)一応MCP(Microsoft Certified Professional)、MCA(Microsoft Certified Associate)所有してたりします…

- WMI Fun !! -
http://www.wmifun.net/
Microsoft社のテクノロジーであるWMI(Windows Management Instrumentation)の使い方を
Visual Basicを使ってのんびり公開しています
WMIはVB/VBAや.Net(VB,C#)以外でもWMICやWSH(VBS,JS)・PowerShellなどスクリプト言語からも使えますよ!
Windowsベースの社内ITシステムに関する資産管理、アセットマネジメントや監視業務の効率化、
インベントリ情報収集系システムツール開発にWMIはお勧めです

This website is created by Toh.
Copyright(C) 1997-2012 WMI Fun !!. All rights reserved.
WMI Fun !!へのリンクはご自由に…相互リンクに関するお問い合わせはアンケートページからお願いします。

∧ ページの先頭へ…