Powershell script to arrange displays

Wim Schalley 1 Reputation point

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,283 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Rich Matheisen 44,086 Reputation points

    Try this instead of rolling your own: multi_monitor_tool.html

    0 comments No comments

  2. Ian Xue (Shanghai Wicresoft Co., Ltd.) 27,931 Reputation points Microsoft Vendor


    This may help you get started

    Best Regards,


    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