Given an extended 2-display setup, is there a script (Powershell preferred) that will toggle the following setting for a display?

change primary display option

Under different circumstances, I'd like to set my laptop or my monitor as the primary display of the extended setup. I'm fine with 2 separate scripts sitting on my desktop each toggling a single display's primary status.


Solution 1:

Take a look at MultiMonitorTool of Nir Sofer: command line arguments "/SetPrimary 2" will set monitor #2 as primary.