How to turn off a SPECIFIC MONITOR from the command line or powershell?

  • Thread starter Thread starter Jibunnokage
  • Start date Start date
J

Jibunnokage

Guest
How to turn off a SPECIFIC MONITOR from the command line or powershell? The following turns off ALL MONITORS... NOT what I need.powershell.exe -Command "(Add-Type '[DllImport(\"user32.dll\")]public static extern int SendMessage(int hWnd,int hMsg,int wParam,int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2)" There is a method in the UI (Windows 10, 11) that lets you disconnect an individual monitor, but I want to turn off the power, not disconnect, a SPECIFIC MONITOR. So surely there is SO WAY to do this?

Continue reading...
 
Back
Top