Windows

Get monitor make and serial number command line

November 19, 2021 Rich 1 min read

The following powershell command will return make and serial number of a monitor connected to the computer.

gwmi WmiMonitorID -Namespace root\wmi | ForEach-Object {($_.UserFriendlyName -ne 0 | foreach {[char]$_}) -join ""; ($_.SerialNumberID -ne 0 | foreach {[char]$_}) -join ""}

Reference: WmiMonitorID class – Win32 apps | Microsoft Docs

Leave a comment