Powershell script to arrange displays

Wim Schalley 1 Reputation point
2020-10-21T15:23:46.1+00:00

Hi experts, since I'm working from home with a remote desktop system, whenever the internet connection drops out, the computer arranges the monitors in the wrong way and I have to manually rearrange them in the correct order using 'Display' settings. It's a limitation of the PC-over-IP box I've got from my employer, so no help switching the monitor cables around. Is there a powershell command to rearrange the displays? Thanks Wim Schalley

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,462 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Rich Matheisen 45,906 Reputation points
    2020-10-21T18:24:13.3+00:00

    Try this instead of rolling your own: multi_monitor_tool.html

    0 comments No comments

  2. Ian Xue (Shanghai Wicresoft Co., Ltd.) 34,271 Reputation points Microsoft Vendor
    2020-10-22T05:54:36.017+00:00

    Hi,

    This may help you get started
    https://superuser.com/questions/1358092/automate-arrangement-of-multiple-displays-in-windows-10

    Best Regards,
    Ian

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments