How do i disconnect particular screen in Windows via commad-line?

1

My setup are 3 screens, one TV 4k and two 1080p screens. I am looking for a simple, best would be native way of turning off and on particular screen.

This option can be found in Display Settings, however I would rather use cmd or PowerShell to do this kind of thing.

enter image description here

Basically, I want to be able to turn off and on the display via cmd or PowerShell or more precisely I want to switch between options Disconnect this display and Extend desktop to this display on my screen number x

I have done some research and there is command available in windows, however it only changes projection mode, not mode for particular screen - %windir%\System32\DisplaySwitch.exe /external and other arguments like /extend or /clone

Additionally i want to mention programs like nircmd - I am aware of this little app for years, however it doesn't solve this problem, so before you post "nircmd can do it", please read carefully what i want to achieve - Thanks!

rkd.me

Posted 2019-09-29T21:30:40.267

Reputation: 11

1

Possible duplicate of Turn off display in Windows on command

– Moab – 2019-09-29T22:29:59.423

I don't think it's duplicate as options there didn't help me. I am aware of programs like nircmd and Wizmo, but they don't work as i want them to work. @Moab there is mention about powershell in your link, i will try to play with this and will let you know, thanks! – rkd.me – 2019-09-29T22:39:20.177

It looks like same thing, but via powershell. It's not what i am looking for. To be more precise, i want to turn display off in windows, so it does not send the signal, not the display itself. – rkd.me – 2019-09-29T22:41:17.867

To explain this further i will attach screenshots what happens when i choose Disconnect this display option from the screenshot in main post. Options for resolution and the rest are blank (ss1) and display goes to the right on the setup screen despite being at the top before (ss2)

– rkd.me – 2019-09-29T22:46:18.117

I use Nirsoft for this: nircommand\nircmd" monitor off . Make a batch file of it and run it when needed. I find this works just fine – John – 2019-09-30T00:41:59.023

As i mentioned before, nircmd doesn't work as i want it to work. I don't want to send "command" to switch off screens. I want to disconnect particular screen from Windows. I am sure this option is available, because Windows Setting dialog has this option (previous screenshots) - it must be either registry or powershell – rkd.me – 2019-09-30T10:11:49.310

No answers