2

In windows, I can use the identify button in the display control panel to display a number on each monitor corresponding to their ID in windows display manager.

Can I, preferably using powershell, show these ID temporarily just like clicking the button. Windows display identify button

If it's not possible to get to show the ID as windows does it, would it be possible to popup a window in a specific monitor display ?

My goal is to get a monitor to show information on itself either by correlating display id with WMI information or by showing a window with the current monitor information.

For example, let's say i have 4 monitor in a 2x2 matrix. All the monitors are the same models, only thing that would change is the serial numbers. Using WMI, i can get information on the monitors, but is there a way to know which monitor is which physically?

NMC
  • 793
  • 9
  • 18

1 Answers1

0
function GetMonitorSerial () {
        $Monitor =(Get-WmiObject -NameSpace root\wmi -Class wmiMonitorID -EA 0 | ForEach-Object {
            $([System.Text.Encoding]::Ascii.GetString($($_.SerialNumberID)))
        })

        $MON0 = $Monitor[0]
        $MON1 = $Monitor[1]
    $MON2 = $Monitor[2]
    $MON3 = $Monitor[3]
        Write-Host "Monitor #0: " $MON0
        Write-Host "Monitor #1: " $MON1
    Write-Host "Monitor #2: " $MON2
    Write-Host "Monitor #3: " $MON3
    }

    GetMonitorSerial
desertnaut
  • 57,590
  • 26
  • 140
  • 166
Qamar
  • 1
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – gkubed Aug 19 '22 at 12:03
  • Thanks for trying to answer but the issue remains with this option. It is easy to find out what serial number, but I don't know which physical monitor has which serials. I want to programmatically target a monitor and display that information (serial #, make, model,etc) on that specific monitor. – NMC Sep 07 '22 at 02:25