Use
Mofcomp to recompile and reload your MOF text file. For example, the command
mofcomp –N:root/wmi driver.mof tries to recompile and reload any MOF data in the
driver.mof file. Check to see what error messages
Mofcomp generates in
mofcomp.log. Note that if your MOF file uses preprocessor directives such as
#define,
you need to use the already preprocessed MOF file, and not the original
source file. If the operation succeeds, it actually registers the new
WMI class data with the system. You need to delete these classes (by
using
Wbemtest, for example) to test if your driver’s MOF data is being read correctly.
If this step succeeds, the most likely problem is that the members of
WMIREGINFO, such as
MofResourceName,
are specified incorrectly. Alternatively, the problem could be that
your MOF file specifies a class derived from a base class that doesn’t
exist.