Get monitor make and serial number command line

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 Reply

Your email address will not be published. Required fields are marked *