WMI and Monitor Serial

Y

Yavuz Bogazci

Hi,

how can i get the serial number and the model number of a
monitor via WMI?

thanks
yavuz bogazci
 
H

Herfried K. Wagner [MVP]

* "Yavuz Bogazci said:
how can i get the serial number and the model number of a
monitor via WMI?

If you don't get an answer there, feel free to post to this ng:

<
 
K

Ken Tucker [MVP]

Hi,

You can use the win32_desktopmonitor class to get the monitor type.
I do not see any way to get the serial number. Add a reference to
system.management.dll.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_desktopmonitor.asp
Dim moReturn As Management.ManagementObjectCollection

Dim moSearch As Management.ManagementObjectSearcher

Dim mo As Management.ManagementObject

moSearch = New Management.ManagementObjectSearcher("Select * from
Win32_DesktopMonitor")

moReturn = moSearch.Get

For Each mo In moReturn

Debug.WriteLine(mo("Name"))

Debug.Indent()

Debug.WriteLine(mo("MonitorManufacturer"))

Debug.WriteLine(mo("MonitorType"))

Debug.Unindent()

Next

Ken
 
C

Cor

Hi Yavuz,

I never saw a monitor serial number in a window.

Can you give an example where you saw that serial number presented on the
screen, till now I had always to use the TA module. Turn Around.

Than I could mostly read it on the monitor, although sometimes it was with
the TDU module, Turn downside up.

But I am really curious where you saw this?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top