The Managed Object Format (MOF) compiler (mofcomp.exe) parses MOF files and adds the classes and class instances defined in the files to the WMI repository. Use the Mofcomp property page to compile MOF files with your driver. For more information about Mofcomp.exe and WMI, see mofcomp, Compiling MOF Files, and Compiling a Driver's MOF File.
Setting Managed Object Format (MOF) Compiler properties for driver projects
Open the property pages for your driver project. Select and hold (or right-click) the driver project in Solution Explorer and select Properties.
In the property pages for the driver project, select Configuration Properties and then select Mof Compiler.
Set the properties for the project.
This property page is available if you add a Managed Object Format (MOF) file (.mof) to your solution.
Option
Description
Additional Options
Specifies additional options to pass to the mofcomp tool.
Amendement
Splits the MOF file into language-neutral and -specific versions. (-AMENDMENT:Locale)
Authority
Specifies Authority as the authority (domain name) to use when logging on to WMI. (-A:Authority)
Auto Recover
Adds the named MOF file to the list of files compiled during repository recovery. (-autorecover)
Create Binary Mof File
Requests that the compiler create a binary version of the MOF file with the name filename without making any modifications to the WMI repository. (-B:Filename)
Language Neutral Output
Name of the language neutral output. (-MOF:Path)
Language Specific Output
Name of the language specific output. (-MFL:Path)
Mof Class
Creates or updates MOF classes.
Create Only (-class:createonly) Requests that the compiler not make any changes to existing classes. When this switch is used, the compile operation terminates if a class specified in the MOF file already exists.
Force Update (class:forceupdate) Forces updates of classes when conflicting child classes exist.
Safe Update (-class:safeupdate) Allows updates of classes even if there are child classes, as long as the change does not cause conflicts with child classes.
Update Only (-class:updateonly) Requests that the compiler not create any new classes.
Requests that the compiler load the MOF file into the namespace specified as namespacepath. (-N:namespacepath)
Resource Locale
Extracts the localized MOF descriptions from the binary MOF when used with -ER switch. (-L:ResourceLocale)
Resource Name
Extracts binary MOF from a named resource. (-ER:ResourceName)
Syntax Check
Requests that the compiler perform a syntax check only and print appropriate error messages. No other option can be used with the Syntax Check option.
WMI Syntax Check
Requests that the compiler perform a WMI syntax check -WMI . If you select this option, you must also select the Create Binary Mof File option (-B:Filename)
Tässä moduulissa kerrotaan, miten voit tehdä muutoksia CIM:n ja WMI:n avulla menetelmiä käyttämällä. Käytettävissä olevat menetelmät vaihtelevat objektin tyypin mukaan. Näiden menetelmien löytäminen ja ymmärtäminen on tärkeä vaihe säilön tietojen kyselyssä ja muokkaamisessa.