Link to home
Start Free TrialLog in
Avatar of sgt_zim
sgt_zimFlag for United States of America

asked on

windows management instrumentation

I'm trying to figure out why wmic csproduct returns "no instances found" on a win 7 pro 64 bit machine.  I've run across 3 or 4 laptops that do this.  All of our laptops are HP ProBook  4730s, 4530s, or 4540s, and there seems to be no rhyme or reason as to why just a handful won't report on SN, vendor, etc.

WMI is up and running in services, and I've even restarted it on the laptops where I get the "no instances found" message.  It doesn't matter if I run the wmic/gwmi command from CLI or Powershell, I get the same answer.

WMI is responding on most win32 objects, just not the csproduct or bios objects.
Avatar of arnold
arnold
Flag of United States of America image

If you run systeminfo on these laptops, do you have vendor/model reflected there?

Are these UEFI based laptops?
Avatar of sgt_zim

ASKER

I'll have to check sysinfo, but they're all definitely BIOS, not UEFI.
WMI classes are redesigned from windows 7 so need to know which command you are running. Other than that try WMICodeCreator http://www.microsoft.com/en-in/download/details.aspx?id=8572  for more help .

There are various loopholes fixed in Windows 7 so may be previous versions information were available but not now. If you are developer than for specific information you may need to sign NDA with microsoft regarding the same.  

Do let me know the process what you want and how you are trying to achieve so that I can help you better .
Can you try from an elevated command prompt: wmic csproduct list full
Do you get any output?

If you do: wmic /?
Do you see this in the 'about' info:
CSPRODUCT                - Computer system product information from SMBIOS.
Avatar of sgt_zim

ASKER

Rusty, it's just a handful of laptops that are showing "no instances found," and it's only when I query wmic bios get serialnumber and wmic csproduct.  Just about everything else that can be queried through WMI is returning good info.

Strange thing is that these are laptops that we bought in batches 20-30 at a time from HP.  It's just one here and there that won't give the info.
ASKER CERTIFIED SOLUTION
Avatar of Ratnesh Mishra
Ratnesh Mishra
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial