Script to switch primary display setting

7,177

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

Share:
7,177

Related videos on Youtube

techSultan
Author by

techSultan

Updated on September 18, 2022

Comments

  • techSultan
    techSultan almost 2 years

    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.