Hi all,

I need the following:

On some Windows machines there are two monitors, one is in landscape mode and one in portrait mode (turned 90°)

How can I set via CLI the direction and also the resolution?

Under Linux this would be simple and trivial solveable with xandr.

Is there an alternative for Windows (with a free license, as no additional license costs can be charged)

Thanks a lot in advance.

3 Comments   [ + ] Show Comments

Comments

  • this link mentions 3 free ones that can change the res.
    http://superuser.com/questions/89302/any-way-of-changing-windows-7-screen-resolution-via-command-line
  • A power shell script may be the way to go
    http://stackoverflow.com/questions/12644786/powershell-script-to-change-screen-orientation
    http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/07/hey-scripting-guy-how-can-i-change-my-desktop-monitor-resolution-via-windows-powershell.aspx

    https://www.google.com/#q=changing+monitor+settings+powershell+windows+7
  • I've never tried it and don't have the hardware to duplicate it at the moment, but couldn't you just change the registry keys for resolution/orientation? http://superuser.com/questions/106749/what-registry-key-or-windows-file-determines-where-monitors-are-placed-in-a-mult
Please log in to comment

Answers

0

 There isn't much out there as managing how the monitor is placed is rarely a central management concern.

You can make your own small progran in .NET for example that leverages the Win32 ChangeDisplaySettings method to control orientation. (and resolution if needed as well.

Answered 01/03/2014 by: EVEEN
Green Belt

Please log in to comment
Answer this question or Comment on this question for clarity