.MOF

MOF File

Managed Object Format File
Ask a question
QUICK ANSWER

A MOF (Managed Object Format) file is a plain-text source file that defines WMI/CIM classes and instances on Windows. Read or edit it in any text editor. To apply it to Windows, compile it with the built-in mofcomp.exe at an elevated command prompt.

Developer: Distributed Management Task Force (DMTF); used by Microsoft WMI Category: Developer Files Open standard MIME: text/plain
OPENS ON Windows
Related: .DO · .MD · .HEX · .XSD

On this page

19k+ extensions indexed
Last reviewed Jul 19, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the MOF file format?

.mof files are associated with the Distributed Management Task Force (DMTF) and are used on Windows platforms as part of the WMI subsystem.

.mof files store data in plain text using ASCII or Unicode encoding. A Unicode .mof opens with a byte-order mark (FF FE for UTF-16 LE, or FE FF for big-endian). .mof files contain class and instance declarations written in Managed Object Format language - the textual syntax of DMTF's Common Information Model (CIM). .mof files are used for managing WMI settings and resources.

A .mof file is *source code*, not live repository data. To take effect, it must be compiled by mofcomp.exe (found in %Windir%\System32\wbem), which parses the declarations and writes them into the WMI repository. Editing the .mof text does not change WMI until the file is recompiled.

What is WMI?

WMI (short for Windows Management Instrumentation) is a set of protocols for system resource data interchange and communication. WMI allows users to manage many system components such as NICs, control system processes, read system sensor data, and more. .mof files store instructions and structures - such as class definitions with typed properties and qualifiers - that define process communication and data exchange in Microsoft Windows systems.

Related configuration formats include .reg files (Windows Registry exports) and .ps1 scripts (PowerShell), both of which can also interact with WMI and system resources.

Security & safety

RISK: MEDIUM

A MOF is plain text, so reading one is safe. The caution is in compiling it: 'mofcomp file.mof' modifies the WMI repository with administrator rights, and a malicious or buggy MOF could add classes, register a WMI event-consumer for persistence (a known attacker technique), or corrupt parts of the repository. Only compile MOF files from trusted sources, review the contents first, and prefer 'mofcomp -check' to validate before committing on production systems.

Format details

in a nutshell
FULL NAMEManaged Object Format Fileaka MOF file, WMI MOF
DEVELOPERDistributed Management Task Force (DMTF); used by Microsoft WMIsince Mid-1990s - MOF is the textual syntax of DMTF's Common Information Model (CIM); adopted by Microsoft WMI in Windows (since ~1998)
MIME TYPEtext/plain
TYPEPlain-text source file declaring CIM/WMI classes and instances (compiled by mofcomp)
STANDARDOpen · royalty-free

Programs that open MOF files

Windows4 apps
Windows Notepad Built-in Right-click the .mof > Open with > Notepad to read/edit the text. Editing alone doesn't apply it - recompile with mofcomp.
Notepad Open-source Open the .mof for syntax-highlighted reading/editing of WMI class and instance definitions.
Visual Studio Code Free Open the .mof to read/edit; good for larger schema files. Apply changes by compiling with mofcomp.
mofcomp.exe (WMI MOF Compiler) Built-in To apply a MOF: open an elevated prompt and run 'mofcomp file.mof' - it loads the classes/instances into the WMI repository.

Technical details

deep spec
Format typePlain-text source file declaring CIM/WMI classes and instances (compiled by mofcomp, not interpreted directly)
Syntax languageManaged Object Format (MOF) - C-like declarative syntax defined by DMTF DSP0004/DSP0221
EncodingASCII or UTF-16; a Unicode .mof opens with a byte-order mark (FF FE for UTF-16 LE, FE FF for BE)
File signatureNo fixed magic bytes; ASCII .mof files carry none; Unicode .mof is identified by its BOM only
Compiler toolmofcomp.exe in %Windir%\System32\wbem - parses .mof source and writes classes/instances into the WMI repository
MIME typetext/plain
Namespace targeting#pragma namespace directive at file top sets the WMI target namespace (e.g. root\cimv2)
Class syntaxclass ClassName : ParentClass { ... } with strongly-typed properties and optional bracket qualifiers
Instance syntaxinstance of ClassName { ... } blocks define WMI object instances inline in the source
QualifiersSquare-bracket annotations such as [Dynamic, Provider("WMIProv"), read] decorate classes and properties
Pragma directives#pragma autorecover, #pragma deleteclass and #pragma deleteinstance control compilation behavior
WMI repository pathCompiled output stored in %Windir%\System32\wbem\Repository
Typical file size1 KB - several hundred KB; large schema files such as the WMI core MOF can reach multiple megabytes
Localization partner.mfl (MOF localization file) pairs with .mof to supply locale-specific string resources for WMI classes
ReleasedMid-1990s - MOF is the textual syntax of DMTF's Common Information Model (CIM); adopted by Microsoft WMI in Windows (since ~1998)
Latest versionDefined by the DMTF CIM/MOF specification (DSP0221); evolves with the CIM Infrastructure standard
Open standardYes · royalty-free
Specificationlearn.microsoft.com

MOF conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with MOF files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about MOF files.

Frequently asked questions

How do I open a MOF file?
It's plain text - open it in any editor (Notepad, Notepad++, VS Code) to read or edit the WMI class/instance definitions. Editing the file doesn't change Windows; to apply it you compile it with mofcomp.exe.
What is a MOF file used for?
It defines WMI/CIM classes and instances on Windows - the schema that management tools, scripts (PowerShell CIM cmdlets) and products like SCCM/Configuration Manager query. Driver developers also use MOF to register WMI data.
How do I compile or apply a MOF file?
Open an elevated command prompt and run 'mofcomp yourfile.mof' (mofcomp.exe lives in %Windir%\System32\wbem). Add '-check' first to validate the syntax without writing to the WMI repository.
Is a MOF file a program or a virus?
It's a declarative text file, not an executable, so it can't run on its own. The risk is only if someone compiles a malicious MOF (mofcomp can register a WMI consumer for persistence) - review and compile only trusted MOF files.
What's the difference between MOF and SMS_def.mof / configuration.mof?
Those are specific MOF files used by SCCM/Configuration Manager to control hardware inventory. They're ordinary MOF files; you edit which WMI classes are reported and the client recompiles them. MOF itself is the general WMI format, not unique to SMS/SCCM.
Can I convert a MOF to XML?
There's rarely a need - WMI consumes MOF directly via mofcomp. MOF and CIM-XML both describe CIM, but on Windows you compile the MOF rather than convert it; MOF<->CIM-XML mapping is niche DMTF tooling.

References

1Microsoft Learn - Managed Object Format (MOF)learn.microsoft.com
2Microsoft Learn - mofcomp (MOF Compiler)learn.microsoft.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.MDMarkdown Document
4.RPMSGRestricted Permission Message
5.PARTPartial Download File
6.CRDOWNLOADChrome Partial Download File
7.NOMEDIAAndroid No-Media Marker File
8.PRDXSoftMaker Presentations Document
9.PRO6XProPresenter 6 Bundle File
10.SWFSmall Web Format (Shockwave Flash)

Related extensions

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.MAPSource Map (JavaScript / CSS)
.CONFIGConfiguration File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z