The following query should return a set of files that were created to the G drive in the folder test.
I am having trouble getting the following WMI query to work:
SELECT * FROM __InstanceCreationEvent WITHIN 1 WHERE
TargetInstance ISA 'CIM_DataFile' AND TargetInstance.Drive = 'G:' AND
TargetInstance.Path = '\\test\\'
The wbemtest utility gives me the following error:
Number: 0x80041017
Facility: WMI
Description: Invalid query
Thanks!