1
I want to schedule a windows task to run when a secondary output device (e.g., VGA monitor or HDMI A/V receiver is turned on or off) but I'm not sure which event should be used for this. I found something related to network cable plug/unplug here How to launch a command on network connection/disconnection? , but nothing for external audio/video devices. Any such event or events exist? If not, any other way to do this? Thanks
I know this is old, but in case it helps any others that don't plan to check the event viewer for their details, I didn't see anything in
Log: Microsoft-Windows-DeviceSetupManager/Admin
. The two displays I plugged into my HDMI port gave me results from the "System" log (Event Viewer > Windows Logs > System
). The corresponding values above would beSource: Display
and anEvent ID: 4107
in my case. Note: They both appear when connecting and disconnecting the monitors. – Darrel Holt – 2018-03-27T22:33:02.883