CD ROM drive information

(imported topic written by Rupen)

This script is working on Win7, Win8, Win2008 except Windows XP and Vista. please suggest on how to solve it.

if (exists wmi) then (string values of selects “Caption from Win32_CDROMDrive” of wmi) else (“N/A”)

(imported comment written by Tim.Rice)

Works fine for me, both in VMware Workstation with WinXP and on a physical WinXP workstation.

Q: if (exists wmi) then (string values of selects “Caption from Win32_CDROMDrive” of wmi) else (“N/A”)

A: NECVMWar VMware IDE CDR10

T: 346.120 ms

Q: if (exists wmi) then (string values of selects “Caption from Win32_CDROMDrive” of wmi) else (“N/A”)

A: HL-DT-ST DVDRAM GSA-T20N

T: 440.514 ms

What are you getting as a result? Are you getting an error of some kind?

(imported comment written by Rupen)

Sorry it’s working. I mean for Monitor and RAM. This script doesn’t work in WinXP and Vista including VMWARE

if (exists wmi) then (string values of selects “Name from Win32_DesktopMonitor” of wmi) else (“N/A”)

if (exists wmi) then (string values of selects “manufacturer from Win32_PhysicalMemory” of wmi) else (“N/A”)

Please suggest.

(imported comment written by Tim.Rice)

Are you able to perform the same WMI queries using another tool and get different results?

When I run the two WMI queries using QnA ( on my Win7 desktop), I get the following …

Q: if (exists wmi) then (string values of selects “Name from Win32_DesktopMonitor” of wmi) else (“N/A”)

A: Generic PnP Monitor

T: 733.784 ms

Q: if (exists wmi) then (string values of selects “manufacturer from Win32_PhysicalMemory” of wmi) else (“N/A”)

A: Undefined

A: Undefined

T: 706.119 ms

It looks to me like TEM is successfully querying the elements, but that there is no meaningful data to return. I’m not getting many errors back, I just can’t use the data for what I wanted. In particular, I have used the first query for years, and of the +21k WinXP systems in my TEM environment, I get 115 unique results for the Name of the DesktopMonitor. Most just return
Plug and Play Monitor
.

Some of the results I get include (the majority, 55, of them are Dell, so it makes me think it’s a Vendor/Driver issue, not a Windows or TEM issue) …

  • Acer G235H
  • Acer AL1916
  • Acer G235H
  • Barco MDCC-6130 MKIII
  • Default Monitor
  • Dell 1701FP (analog)
  • Dell 1701FP (digital)
  • Dell 1702FP (Analog)
  • Dell 1703FP (Analog)
  • Dell 1704FPV (Analog)
  • Dell 1707FP(Digital)
  • Dell 1708FP(Digital)
  • Dell 1900FP (Digital)
  • Dell 1907FP(Digital)
  • Dell 1907FPV(Digital)
  • Dell 1908FP(Analog)
  • Dell 1908FP(Digital)
  • Dell 1908WFP(Digital)
  • Dell U3011 (Digital)
  • Digital Flat Panel (1024x768 60Hz)
  • Lenovo L2250pwD(Digital)
  • Lenovo L2251pwD(Analog)
  • Lenovo L2251xwD(Analog)
  • Monitor - Windows
  • Plug and Play Monitor
  • PnP-Monitor (Standard)
  • SyncMaster 171MP/175MP,MagicSyncMaster RB1700MP
  • ViewSonic VX2739wm
  • Wide viewing angle & High density FlexView Display 1366x768

I’d never tried to query the Manufacturer of the RAM, but for this discussion, I created a new property using a modification of your query …
if (exists wmi) then (concatenation “|” of (string values of selects “manufacturer from Win32_PhysicalMemory” of wmi)) else (“N/A”)
so that I get a single string rather than

which I get on my Win7 desktop.

What I get back from the WinXP machines is either “

” or simply nothing. A blank string. Not an error, just nothing. As with the Monitor Name, I can’t see how that’s the fault of TEM unless you have another tool that can issue the same query and get different results.

For the Win7 systems, I get similar Display Name results (ala mostly
Generic PnP Monitor
) and for RAM Manufacturer I get a mix of information back, some Hex information and lots of Samsung, Kingston, Hynix and Hyundai.

(imported comment written by Rupen)

Hi Tim:

thank you very much for your kind respond. yup you are absolutely when we run in windows xp, vista and vm to check for monitor and ram brand it has empty result. but in windows 7, 8 and 2008 it’s working fine but not in xp and vista. Can we resolve this issue? please update to me.

(imported comment written by Tim.Rice)

I don’t think there is anything that the IBM Developers can do about it. TEM can only report on what it finds. My experience with it makes me think it’s an issue for the Vendors. I usually get pretty good results back from Dell and Lenovo hardware, but it could also be related to the drivers loaded on the systems. That may explain the difference between Win7 and WinXP responses.

Please understand, I’m not an IBM employee, I’m just someone who has used BigFix/TEM/IEM for a long time, and doesn’t mind offering assistance when I can.

(imported comment written by Rupen)

Thanks Tim for your kind support. if ever found solutions then do let you know as well. Have a great day.