LoginSignup
1
1

More than 3 years have passed since last update.

プリンタ情報を出力する

Last updated at Posted at 2019-05-23

プリンタ情報が知りたい場合、PowerShellから次を実行する。(全プロパティ)
プロパティは適宜削る。
※このままではステートメント長すぎてエラーとなる。

  • Get-WmiObject Win32_Printer 対象プロパティ[,対象プロパティ[,対象プロパティ...]]

全項目表示するにはこちら

  • Get-WmiObject -Class Win32_Printer | Format-List -Property *
  • Get-WmiObject -Class Win32_Printer | Select-Object -Property *

プロパティ

Attributes
Availability
AveragePagesPerMinute
Capabilities[]
CapabilityDescriptions[]
Caption
CharSetsSupported[]
Comment
ConfigManagerErrorCode
ConfigManagerUserConfig
CreationClassName
CurrentCapabilities[]
CurrentCharSet
CurrentLanguage
CurrentMimeType
CurrentNaturalLanguage
CurrentPaperType
Default
DefaultCapabilities[]
DefaultCopies
DefaultLanguage
DefaultMimeType
DefaultNumberUp
DefaultPaperType
DefaultPriority
Description
DetectedErrorState
DeviceID
Direct
DoCompleteFirst
DriverName
EnableBIDI
EnableDevQueryPrint
ErrorCleared
ErrorDescription
ErrorInformation[]
ExtendedDetectedErrorState
ExtendedPrinterStatus
Hidden
HorizontalResolution
InstallDate
JobCountSinceLastReset
KeepPrintedJobs
LanguagesSupported[]
LastErrorCode
Local
Location
MarkingTechnology
MaxCopies
MaxNumberUp
MaxSizeSupported
MimeTypesSupported[]
Name
NaturalLanguagesSupported[]
Network
PaperSizesSupported[]
PaperTypesAvailable[]
Parameters
PNPDeviceID
PortName
PowerManagementCapabilities[]
Attributes
Availability
AveragePagesPerMinute
Capabilities[]
CapabilityDescriptions[]
Caption
CharSetsSupported[]
Comment
ConfigManagerErrorCode
ConfigManagerUserConfig
CreationClassName
CurrentCapabilities[]
CurrentCharSet
CurrentLanguage
CurrentMimeType
CurrentNaturalLanguage
CurrentPaperType
Default
DefaultCapabilities[]
DefaultCopies
DefaultLanguage
DefaultMimeType
DefaultNumberUp
DefaultPaperType
DefaultPriority
Description
DetectedErrorState
DeviceID
Direct
DoCompleteFirst
DriverName
EnableBIDI
EnableDevQueryPrint
ErrorCleared
ErrorDescription
ErrorInformation[]
ExtendedDetectedErrorState
ExtendedPrinterStatus
Hidden
HorizontalResolution
InstallDate
JobCountSinceLastReset
KeepPrintedJobs
LanguagesSupported[]
LastErrorCode
Local
Location
MarkingTechnology
MaxCopies
MaxNumberUp
MaxSizeSupported
MimeTypesSupported[]
Name
NaturalLanguagesSupported[]
Network
PaperSizesSupported[]
PaperTypesAvailable[]
Parameters
PNPDeviceID
PortName
PowerManagementCapabilities[]
PowerManagementSupported
PrinterPaperNames[]
PrinterState
PrinterStatus
PrintJobDataType
PrintProcessor
Priority
Published
Queued
RawOnly
SeparatorFile
ServerName
Shared
ShareName
SpoolEnabled
StartTime
Status
StatusInfo
SystemCreationClassName
SystemName
TimeOfLastReset
UntilTime
VerticalResolution
WorkOffline

1
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1