Link to home
Start Free TrialLog in
Avatar of fuyuna
fuyunaFlag for Japan

asked on

Return NULL data from CIM_DATAFILE WQL

Hello,
I create WMI script to check a file version in the remote host as below.
SELECT * FROM CIM_DataFile where name ='C:\\AAA\\BBB\\XXXXXXX_XXXXX.dll'
For Each objFile in colFiles
    Wscript.Echo objFile.Version
Next
But Running it. I found that it returned blank.
So When I checked by using WMI Query Analyzer.I found it returned Null data.
But Right-Clicking that file and looking into the properties.I can confirm the file version and product version.
Are there any difference between the version of datefile_class and file properties?




ASKER CERTIFIED SOLUTION
Avatar of graye
graye
Flag of United States of America 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
Avatar of fuyuna

ASKER

Thank you Grave,

Sorry for my poor explanation.
Certainly, I could get the return data from Notepad.exe in my scripts.
The File that did return Null data is especial file not Microsoft provided.
As you know, Almost of file return the File vesrion data.
But I found that one file does not return data.although I could watch its file version by right-clicking.

If you know reason of this, Would you advise me?

Regards,
Hisashiba


Avatar of fuyuna

ASKER

I could not find the solution for it.
I have to close this question.