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

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

このエントリーをはてなブックマークに追加
電子タバコならやっぱりアイコス ネイビー
気になる車は新車購入支援サイト オートックワンで最短 60 秒で見積もり OK
常に話題の最先端を行くスマートフォンは、 Apple iPhone

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 サンプル (e.g. VB/C#/PowerShell)

    SELECT * FROM Win32_PrinterConfiguration

    VB6/VBS
    SWbemServices クラスの ExecQuery メソッドから WQL を実行可能です。
    Set oClassSet = Service.ExecQuery("SELECT * FROM Win32_PrinterConfiguration")
    または下記のような記述でも実行可能です。
    Set oClassSet = GetObject("winmgmts:\\.\root\cimv2").ExecQuery("SELECT * FROM Win32_PrinterConfiguration")

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

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

    PowerShell
    Get-WmiObject コマンドレットの query オプションを指定し WQL を実行可能です。
    Get-WmiObject -query "SELECT * FROM Win32_PrinterConfiguration"
    またはクラス名を直接指定する実行方法もあります。
    Get-WmiObject Win32_PrinterConfiguration


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

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

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

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


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

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

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

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

    ∧ ページの先頭へ…