Use this when working with compiled DSC MOF files.
MOF
MOF files are the compiled output of a DSC configuration, one per node, containing the resolved resource settings the LCM applies.
1. MOF files are compiled configurations per node.
2. Contain settings — protect them.
3. Encrypt credentials with node certificates.
4. Generate checksums for pull.
5. Don't edit by hand.
configuration → compile → MOF → LCM
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
The negative fixture should deliberately exercise risks such as resource module drift, duplicate/ambiguous keys, credentials in artifacts, reboot/pending-state handling, push/pull source drift and resource reporting success without actual convergence, choosing the cases most relevant to compiled configuration document identity/schema, node/resource instances, credential handling and compatibility with the DSC engine/resource versions.
Step 2 Common mistakes Narrow the fault
- MOF files with plain-text credentials (encrypt with certificates).
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- MOF files are compiled configurations, one per node.
- They contain resolved settings.
- Credentials in MOFs must be encrypted with certificates.
Get-ChildItem .\mof\*.mof— compiled MOFs- Checksum files for pull server — integrity
- Credentials encrypted in MOF (certificate) — security
ReferenceWhy it matters1 section · depth on demand
What it is
A MOF file is the compiled DSC configuration for one node, produced by running a configuration script.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
A MOF file is the compiled form of a DSC configuration for one node. Running a configuration script produces <NodeName>.mof, which contains every resource instance with its properties; the Local Configuration Manager on the node reads it and applies the settings.
WebBaseline -OutputPath C:\Dsc\mof # creates web01.mof
Start-DscConfiguration -Path C:\Dsc\mof -ComputerName web01 -Wait -Verbose
MOF files can contain credentials; never allow plain-text passwords (PSDscAllowPlainTextPassword) outside labs — encrypt them with a certificate whose public key is used during compilation and whose private key is on the node.
Example
Configuration Web { Node 'web01' { WindowsFeature IIS { Name='Web-Server'; Ensure='Present' } } }
Web -OutputPath .\mof
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in PowerShell DSC > MOF. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/powershell/dsc/overview?view=dsc-3.0 · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
For compiled configuration document identity/schema, node/resource instances, credential handling and compatibility with the DSC engine/resource versions, prefer typed fields and stable IDs over human presentation text.