Added win11 script 'get monitor EDIDs.ps1'
This commit is contained in:
parent
40f0b6d215
commit
bac562f06f
20
windows/windows-11/scripts/get-monitor-EDIDs.ps1
Normal file
20
windows/windows-11/scripts/get-monitor-EDIDs.ps1
Normal file
@ -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 ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user