diff --git a/windows/windows-11/scripts/get-monitor-EDIDs.ps1 b/windows/windows-11/scripts/get-monitor-EDIDs.ps1 new file mode 100644 index 0000000..949678d --- /dev/null +++ b/windows/windows-11/scripts/get-monitor-EDIDs.ps1 @@ -0,0 +1,20 @@ +# Get EDID information from the registry +$monitors = Get-ChildItem "HKLM:\SYSTEM\CurrentControlSet\Enum\DISPLAY" + +foreach ($monitor in $monitors) { + $monitorKeyPath = "HKLM:\SYSTEM\CurrentControlSet\Enum\DISPLAY\$($monitor.PSChildName)" + $subKeys = Get-ChildItem $monitorKeyPath + + foreach ($subKey in $subKeys) { + $deviceParamsPath = "$monitorKeyPath\$($subKey.PSChildName)\Device Parameters" + $edid = Get-ItemProperty -Path $deviceParamsPath -Name EDID -ErrorAction SilentlyContinue + + if ($edid) { + $edidHex = ($edid.EDID | ForEach-Object { '{0:X2}' -f $_ }) -join ' ' + Write-Host "Monitor: $($monitor.PSChildName)" + Write-Host "EDID: $edidHex" + Write-Host "" + } + } + +} \ No newline at end of file