mofcomp compiles .mof file statements into classes in the WMI repository.

Usage Guide

mofcomp is a command line utility that usually takes the name of a .mof file as its’ only parameter. These switches can be used:

  • -autorecover - Adds the .mof file to the autorecovery list at HKLM\Software\Microsoft\WBEM\CIMOM\Autorecover MOFs
  • -check - Run syntax check only an display any errors.
  • -N:<namespacepath> - loads the .mof into the specified namespace.
  • -class:createonly - Ignore any instructions that would change existing classes.
  • -class:forceupdate - Forces changes to existing classes.
  • -class:safeupdate - Change existing classes only if the changes do not conflict with child classes.
  • -class:updateonly - Do not create any new classes, only change existing clases.
  • -instance:updateonly - Do not create any new instances, only update existing instances.
  • -instance:createonly - Do not change any existing instances.
  • -B:<filename> - Only compile a binary version of the specified .mof, do noy update the WMI repository.
  • -WMI - Run syntax check (can only be uses with the –B switch.
  • -U:<UserName> - Run in the context of the specified user.
  • -P:<Password> - Password fro the specified user.
  • -A:<Domain> - The logon domain for the specified user.
  • -AMENDMENT:<Locale> - Splits the .mof into language neutral and language specific versions.
  • -MOF:<path> - Used with -AMENDMENT: path for the language neutral version.
  • -MFL:<path> - Used with -AMENDMENT: path for the language specific version.
  • -ER:<ResourceName> - Extracts a binary .mof from a named resource.
  • -L:<ResourceLocale> - Uses with -ER extracts localised descriptions from the binary .mof.

Tool Data

Operating Platform:Windows
Diagnostic Target:OS - CIM, WBEM and WMI
CI Targets:
  • HKLM\SOFTWARE\Microsoft\WBEM\CIMOM\Autorecover MOFs
Tool Executable:mofcomp.exe
Obtain From:Installed with Windows
Web Links:

Results for Tools search

You entered the search string "".
No results were returned for this string.

Copyright © 1997 - 2016 Mission Pacific Pty Ltd. All rights reserved. ezcom, the ez logo and hard tech cafe are registered trademarks of Mission Pacific Pty Ltd. Designed for firefox and safari. Sitemap