Question

I'm trying to execute a WMI method using wbemtest.exe. I've selected the method in the select box, clicked the "Edit In Parameters", and I'm presented with "Object editor for __PARAMETERS". From there I select the parameter with type "CIM_DATETIME", and click "Edit Property" to be presented with the "Property Editor" window. From there, I'm selecting "Not NULL" and entering a value in the format described on the MSDN. Here's an example:

2013-05-10 15:45:38:000

When I click "Save Property", I get the following error:

Number: 0x80041005
Facility: WMI
Description: Type mismatch

Any ideas of what I'm doing wrong?

Was it helpful?

Solution

The CIM_DATETIME article you linked to describes two WMI date and time formats. You need to use the other one:

yyyymmddHHMMSS.mmmmmmsUUU

For example:

20130510154538.000000+000
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top