I've got a laptop with a 2560 x 1440 display, connected to 2 external 1080p monitors. The scaling is fine normally, with the native monitor at 125% and the 1080p monitors at 100%, but when I undock the laptop, sometimes the laptop goes to 200% scaling factor and I need to reset it manually in display settings.
I would like to find a command that emulates the setting here, such that I don't need to right click on the desktop and open display settings every time I unplug my external monitors:
The only registry keys/PowerShell commands I've found for this require logging out to take effect, which doesn't seem necessary given the GUI setting can take effect immediately.