Reliably switching primary display at boot via script — looking for the right approach
Setup:
Windows 11 | RTX 5080 | Three displays: physical monitor (ID: AUS274D), a case-mounted display (ID: RTK409A), and a Virtual Display Driver (ID: MTT1337)
Goal: A PowerShell script triggered at logon via Task Scheduler that:
- Detects whether the physical monitor is connected at boot
- If yes → set it as primary, virtual display disabled
- If no → set virtual display as primary, all physical displays disabled
Using the monitor cable as a boot-time toggle — no menus, no manual steps.
Current approach:
Detecting monitor presence via MultiMonitorTool's CSV export (Short Monitor ID), then switching primary with /SetPrimary and /enable / /disable.
Questions:
- Is Short Monitor ID detection via MultiMonitorTool reliable before GPU drivers fully initialize at boot?
- Is there a more reliable detection method — WMI, EDID query, registry?
- Any known timing issues with display enumeration on NVIDIA systems at logon?
Open to alternative tools if MultiMonitorTool isn't the right fit here.