How to via programming logic find and turn off a specific selected monitor(s) in a multiple monitor system configuration?

Jibun no Kage 21 Reputation points
2021-02-14T03:33:19.993+00:00

How to via programming logic find and turn off a specific selected monitors in a multiple monitor system configuration? Need method, via script Power Shell, or programming logic, .NET VB, C, C#, Rust, JavaScript, etc., solutions preferred. The goal is to leave one monitor on for video presentation but turn other off. Not just blanking or blacking the screen, but actually power off, or at least put into sleep or low power mode. Thanks in advance!

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,239 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,568 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,541 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,363 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Castorix31 81,721 Reputation points
    2021-02-14T06:41:16.63+00:00

    It can be done with SetVCPFeature
    You can find samples from Google, like Turn On / Off display monitor

    0 comments No comments

  2. Jibun no Kage 21 Reputation points
    2021-02-14T06:48:30.887+00:00

    Thanks for the initial reply. But was asking for more detailed answer, at a deep technical level. This is not a simple problem to solve, and likely only someone that has actually already done it, can provide extensive information on how such can be done. If Google provided sufficient information, would not have posted to this forum. There has to be someone on this forum that has a deep understanding of how what I am asking can be done.