mofcomp

The Managed Object Format (MOF) Compiler

The Managed Object Format (MOF) Compiler


mofcomp

  • C:\Windows\System32\Wbem\mofcomp.exe /?

Output:

Microsoft (R) MOF Compiler Version 10.0.19041.1
Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.

usage: mofcomp [-check] [-N:<Path>]
               [-class:updateonly|-class:createonly]
               [-instance:updateonly|-instance:createonly]
               [-B:<filename>] [-P:<Password>] [-U:<UserName>]
               [-A:<Authority>] [-WMI] [-AUTORECOVER]
               [-MOF:<path>] [-MFL:<path>] [-AMENDMENT:<Locale>]
               [-ER:<ResourceName>] [-L:<ResourceLocale>] 
               <MOF filename>

   -check                    Syntax check only
   -N:<path>                 Load into this namespace by default
   -class:updateonly         Do not create new classes
   -class:safeupdate         Update unless conflicts exist
   -class:forceupdate        Update resolving conflicts if possible
   -class:createonly         Do not change existing classes
   -instance:updateonly      Do not create new instances
   -instance:createonly      Do not change existing instances
   -U:<UserName>             User Name
   -P:<Password>             Login password
   -A:<Authority>            Example: NTLMDOMAIN:Domain
   -B:<destination filename> Creates a binary MOF file, does not add to DB
   -WMI                      Do Windows Driver Model (WDM) checks, requires -B switch
   -AUTORECOVER              Adds MOF to list of files compiled during DB recovery
   -Amendment:<LOCALE>       splits MOF into language neutral and specific versions
                             where locale is of the form "MS_4??"
   -MOF:<path>               name of the language neutral output
   -MFL:<path>               name of the language specific output
   -ER:<ResourceName>        extracts binary mof from named resource
   -L:<ResourceLocale>       optional specific locale number when using -ER switch

   Example c:>mofcomp -N:root\default yourmof.mof

Return Code: 1


C:\Windows\System32\Wbem\mofcomp.exe
c:\>ver
Microsoft Windows [Version 10.0.19045.2075]
FileInfo
File Size32768bytes
Creation Time2022/07/08 08:47:17
LastWrite Time2022/07/08 08:47:17
ProductVersion10.0.19041.1
FileVersion10.0.19041.1 (WinBuild.160101.0800)
HashValue
MD5a5b2b6f692d78b6c1d351c8dc0911162
SHA1926d366cb5e9f6f15f3e71581abd891cf2f18c3d
SHA224b824c1e051aa758196a9d44fce4caf459035a5435cdb1948a098f011
SHA2566e589d7d741587143526c36a5cad5791031d3c52d9e7e0dbfc39cd5c207f7b2f
SHA384a6a3cdf8041c31f02d9c93743d6b7e6cc1932b4ab566a6f7b5e22c95f37a338e24f754e4ba056cddb6c68a0366013da3
SHA51216a98f7aacde453c636ae458cde270c79cc273b377c14e27a51a1dd372af1b72e38fe147c17a23e181e45abcd253355c5e95d9321a156cbf42b48e1dd8170ed7
Built with Hugo
Theme Stack designed by Jimmy