Skip to content

Instantly share code, notes, and snippets.

@tkmtmkt
Created June 18, 2012 13:55
Show Gist options
  • Save tkmtmkt/2948484 to your computer and use it in GitHub Desktop.
Save tkmtmkt/2948484 to your computer and use it in GitHub Desktop.
ディスプレイモニタの情報を取得/表示する
gwmi -Namespace root\wmi WmiMonitorID | %{
New-Object PSObject -Property @{
ManufacturerName = -join ($_.ManufacturerName | %{[char]$_})
ProductCodeID = -join ($_.ProductCodeID | %{[char]$_})
SerialNumberID = -join ($_.SerialNumberID | %{[char]$_})
UserFriendlyName = -join ($_.UserFriendlyName | %{[char]$_})
WeekOfManufacture = $_.WeekOfManufacture
YearOfManufacture = $_.YearOfManufacture
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment