Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Are there any tools for Windows 7 that will allow me to enable/disable monitors from the command-line?

For example, my GTX 480 has three outputs (2x DVI and 1x HDMI) but only two displays can be active at any given time. I'd like for a command-line to allow me to disable one of the DVI monitors and enable the HDMI monitor, etc.

(I've found NirCmd which is an amazing utility but it doesn't seem to support this...)

EDIT: UltraMon seems capable of doing this but I really hoping for a more light-weight command-line solution...

share|improve this question
1  
FWIW, I do use UltraMon for this. You can set display profiles and hotkey them, that's not really very much work. –  Shinrai Jul 8 '11 at 16:11
    
howtogeek.com/howto/windows-vista/… –  user125545 Mar 29 '12 at 20:53

2 Answers 2

You can use devcon to do that (you will need to determine your hardware ID, probably here: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY

http://support.microsoft.com/kb/311272

If you need a 64-bit version, you can get it in the Windows Driver Kit:

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=11800

http://www.techlikes.com/2010/09/25/devcon-problem-in-windows-7-solved.html# (for some usage issues).

share|improve this answer
    
That KB link is wrong but I'm not sure DevCon will do what I'm looking for. That can be used to disable the entire dispaly device but I want to disable/enable a specific monitor... –  SofaKng Jul 8 '11 at 15:45
    
@SofaKng I fixed the link. I do see my actual monitor in those registry keys, but maybe you are right. I would test it. –  KCotreau Jul 8 '11 at 15:51

With the freeware MultiMonitorTool it's quite easy:

MultiMonitorTool.exe /disable 1
MultiMonitorTool.exe /enable 2 3
MultiMonitorTool.exe /switch 3
MultiMonitorTool.exe /disable \\.\DISPLAY2
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.