Does wbem query provide any guarantees on the order of results?

74 Views Asked by At

Does code such as

WbemScripting::WbemObjectSet::ExecQuery("Select * from Win32_LogicalDisk","WQL",0x10,NULL);

Provide any guarantees on the order in which results will be returned?

1

There are 1 best solutions below

0
On BEST ANSWER

I cannot tell for sure for the WMI scripting environment, but based on the fact that the underlying ExecQuery operation as defined in the WBEM related standards (e.g. DSP0200) does not provide any ordering guarantees, I would assume that it does not.

Generally, in CIM/WBEM, collections of returned objects are not guaranteed to be ordered.

Andy