Powershell Request: Turn off individual displays using multi monitors


  1. Posts : 137
    Windows 10
       #1

    Powershell Request: Turn off individual displays using multi monitors


    Ive asked on reddit about this, so now asking here too.

    I strolled across someone desiring to be able to turn off extra monitors when using more than 2 monitors. Since I have 3, I thought it would be nice to have something like this and would be useful when watching a late night movie.

    I have seen one or two scripts that do this but not with Powershell alone, afaik. I ask if this could be done, using powershell create a script to turn off each monitor separately using 2 separate desktop shortcuts, one for the left, one for the right, leaving the middle screen alone.

    EDIT: maybe done thru a monitor profile change?

    @moderators : thanks for moving but isnt this General since I'm asking about powershell?

    EDIT 2: I wasnt aware of the WIN+P shortcut. It doesnt look like you can create a shortcut that way. So I imagine if thats in windows, it has to be available thru POWERSHELL too

    - - - Updated - - -

    How would I submit something like this to the PoSh team at MS?
    Last edited by DTG1; 12 Dec 2020 at 08:38.
      My Computer

  2. Paul Black's Avatar
    Posts : 12,430
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #2

    Hello @DTG1,

    DTG1 said:
    Ive asked on reddit about this, so now asking here too.

    I have seen one or two scripts that do this but not with Powershell alone, afaik. I ask if this could be done, using powershell create a script to turn off each monitor separately using 2 separate desktop shortcuts, one for the left, one for the right, leaving the middle screen alone.

    [1] I am assuming that they were Batch scripts, is that correct>
    [2] Have you got the links to the Batch scripts?
      My Computer

  3. Try3's Avatar
    Posts : 7,628
    Windows 10 Home x64 Version 20H2 Build 19042.928
       #3

    DisplaySwitch shortcuts


    DTG1 said:
    I wasnt aware of the WIN+P shortcut. It doesnt look like you can create a shortcut that way.
    These are my display switching shortcuts - they use the built-in DisplaySwitch.exe command

    Display Switch - Change Presentation Mode to Project in Windows 10

    1 PC display
    Code:
    DisplaySwitch.exe /internal
    2 Duplicate displays
    Code:
    DisplaySwitch.exe /clone
    3 Extend display
    Code:
    DisplaySwitch.exe /extend
    4 External display
    Code:
    DisplaySwitch.exe /external

    DisplaySwitch [Win-P dialog]
    Code:
    DisplaySwitch.exe
    Settings, System, Display dialog
    Code:
    ms-settings:display


    Denis
    Last edited by Brink; 15 Dec 2020 at 18:31. Reason: added tutorial link for more info
      My Computer

  4. Try3's Avatar
    Posts : 7,628
    Windows 10 Home x64 Version 20H2 Build 19042.928
       #4
      My Computer


  5. Posts : 137
    Windows 10
    Thread Starter
       #5

    I want to try to stay away from powering off the extra displays as they do disconnect and programs that run on those screens get moved to the center screen. So Display.exe is out.

    https://devblogs.microsoft.com/scrip...r-information/
    Yep read this too. its discovery only.


    @Paul-Black no, i just did a basic search for 'turning off multi monitors and look at several links. One post on reddit in r/powershell used AHK I think but that also used Display.exe.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 12:11.
Find Us




Windows 10 Forums