How to detect video output port

Any one can help me to detect video output of the computer has like HDMI, VGA, displayport etc ?
i’ve tested with this relevance but the result is UNINITIALIZED

below the relevance :

unique values of (tuple string items ( (it + 2) of (integer values of selects "VideoOutputTechnology FROM WmiMonitorConnectionParams" of wmis "root\wmi") ) of "UNINITIALIZED, OTHER, HD15, SVIDEO, COMPOSITE_VIDEO, COMPONENT_VIDEO, DVI, HDMI, LVDS, D_JPN, SDI, DISPLAYPORT_EXTERNAL, DISPLAYPORT_EMBEDDED, UDI_EXTERNAL, UDI_EMBEDDED, SDTVDONGLE, MIRACAST, UNKNOWN, https://msdn.microsoft.com/en-us/library/ff546605.aspx") 

reference :

Hi Gatot, and welcome to the forums.

The code that @jgstew wrote seems to work as advertised on my laptop at least, where it returns “DisplayPort_Embedded” as I expected:

q: unique values of (tuple string items ( (it + 2) of (integer values of selects "VideoOutputTechnology FROM WmiMonitorConnectionParams" of wmis "root\wmi") ) of "UNINITIALIZED, OTHER, HD15, SVIDEO, COMPOSITE_VIDEO, COMPONENT_VIDEO, DVI, HDMI, LVDS, D_JPN, SDI, DISPLAYPORT_EXTERNAL, DISPLAYPORT_EMBEDDED, UDI_EXTERNAL, UDI_EMBEDDED, SDTVDONGLE, MIRACAST, UNKNOWN, https://msdn.microsoft.com/en-us/library/ff546605.aspx")
A: DISPLAYPORT_EMBEDDED
T: 32.094 ms
I: plural string with multiplicity

However I ran this analysis on my lab computers and I did come up with a few that returned “Uninitialized” like your device, even though they are using standard VGA connections.

I ran the WMI Diagnosis Utility from Microsoft (no longer officially supported) on one of the problem computers, but it stated that WMI was set up and working properly. And it does seem to be, in general.

So I think the wmi query is fine, the issue is that wmi in this case for some reason is not able to get the video info. So I think you will have to try alternate means on these devices. I’m searching online and in the registry but haven’t found anything useful yet. I will post back with any more info I can dig up.

1 Like

Gatot, on the problem device can you look at the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY and find the display that has a Control subkey? I believe there should only be one with that key, representing the primary display.

Then take a look at the Device Parameters key. On my problem device, instead of an EDID with hex values it has a BAD_EDID value full of zeros:

I don’t think the Control subkey is guaranteed. I have two monitors connected, of the same model. Beneath HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY I only have one subkey, DELF046, which does not have a Control subkey. Instead I have two instances. Beneath the Device Parameters subkeys I have an EDID for each.

My guess is that the info in WMI is populated in part by info received from the video card & video card driver. If the info isn’t available then WMI can’t report it.

I haven’t looked into this in great detail, but my guess is that either you need updated drivers, or this particular WMI location just isn’t going to work. @gatot.sungkono

It is possible that another WMI location could be used, or that the same info is available somewhere in a file, or in the registry, but it would take digging around to find it.

If you can find a way to get the info you need on a system with this issue WITHOUT using bigfix just by doing research online and trying different things, let us know, and we should be able to figure out a way to report on it with BigFix. If you can’t find any means to get the info you need on the system, then getting the info with BigFix isn’t going to work. If you can get the info somehow, then it is almost always possible to get it with BigFix, but you need to know where to look first.