Windows 10: Command to switch betwn 'Extend Desktop to this display' and 'Disconne

  1.    25 Sep 2017 #1

    Command to switch betwn 'Extend Desktop to this display' and 'Disconne


    I was given a couple of extra computer monitors which are beyond great when you need the extra space but often are not needed. When they're not needed I keep them off but then the cursor sometimes disappears onto one of them. Is it possible to set up a script to switch the display setting between 'Extend Desktop to this display' and 'Disconnect this display' without going to the Windows Display Settings?
      My ComputerSystem Spec


  2. Posts : 430
    Windows 10
       27 Sep 2017 #2

    Just go to Notifications Centre > Project, and select there.

    You can choose what to display in there by going to Windows 10 Settings > System > Notifications & Actions > Quick Actions > Add/Remove to suit.
      My ComputerSystem Spec

  3.    27 Sep 2017 #3

    I don't want to do that. I want to set up physical switches on my desk that I can use to turn on and off monitors as I need them and your solution doesn't permit that. I need commands that can be set up in a batch file or something.
      My ComputerSystem Spec

  4.    28 Sep 2017 #4

    For PC only it's C:\Windows\System32\DisplaySwitch.exe /internal
    For extend it's C:\Windows\System32\DisplaySwitch.exe /extend
    I have shortcuts on my taskbar to do both of the above.
    Click image for larger version. 

Name:	dd Capture.PNG 
Views:	13 
Size:	13.7 KB 
ID:	155366
      My ComputerSystem Spec

  5.    28 Sep 2017 #5

    The keyboard short cut to do it is Windows Logo key + P then select what mode you want. A lot easier than going to the notifications area, if your just switching modes.
      My ComputerSystem Spec

  6.    05 Oct 2017 #6

    alphanumeric said: View Post
    The keyboard short cut to do it is Windows Logo key + P then select what mode you want. A lot easier than going to the notifications area, if your just switching modes.
    Thanks but how does this work if you have four monitors and won't be able to turn them on and off individually?
      My ComputerSystem Spec

  7.    06 Oct 2017 #7

    THX1138 said: View Post
    Thanks but how does this work if you have four monitors and won't be able to turn them on and off individually?
    I run triple monitors. When gaming I only use my main center monitor. I switch to PC only and my other two stop displaying. The one set as your main monitor is the one that stays on. I can leave the other two on or turn them of. Either way my cursor will never go onto them. As far as Windows is concerned they are not there. When I'm done gaming I switch back to Extend and all three are usable again. I do it with the shortcuts I posted above.

    On my laptop I just use the + P if I have my USB monitor plugged in. I hardly ever switch modes on it.

    Just pointing out that + P is the keyboard shortcut to the display modes menu.
      My ComputerSystem Spec

  8.    06 Oct 2017 #8

    Thanks. Unfortunately, I use my monitors in all kinds of configurations depending on what I'm doing (e.g. standing up but web browsing, I want to use only a top monitor; video editing, I want to use three monitors unless I want to follow instructions in which case all four; video gaming, just my primary monitor plus all kinds of nuanced tasks that require varying amounts of screen space) so I want to make it easier to alter configurations with keyboard shortcuts.
      My ComputerSystem Spec

  9.    06 Oct 2017 #9

    You may need something like Display Fusion to do that. I don't know how, or if its even possible, to do it via command line etc.
      My ComputerSystem Spec


 

Related Threads
I am trying to extend my Windows 10 laptop display to a chromecast device (attached to a TV). It seems this was possible prior to the latest Windows 10 update. Does anyone know if it can still be done? According to another article I have read (on...
I am using windows 10 pro on my Powerspec desktop PC. I have one HP monitor and one AOC monitor. I had three monitors (one HP and 2 AOC monitors) working fine using extended display. After removing one monitor (now have 2), the extended display...
Howdy, I have a Dell E6430 Laptop with an Intel HD4000 and an Nvidia NVS 5200M card in it. I can use this laptop in a docking station and run on 2 monitors + the laptop screen for a total of 3 displays. What I want to do is have the main...
I have two BENQ GL2250 monitors connected to my Lenovo H535s via VGA. On bootup the Lenovo logo displays on monitor #2, and not on monitor #1. Then my usual display comes up on monitor #1 and monitor #2 goes to sleep. Tried HDMI leads too and a...
What I would like to do is to Connect Two Monitors to my Computer (which I have already done) But how do I display different Content on each Monitor. As an example, I would like one Monitor to display my email all the time while using the...
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 21:06.
Find Us