Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

MOF

Direct answer

MOF files are the compiled output of a DSC configuration, one per node, containing the resolved resource settings the LCM applies.

When to use this

Use this when working with compiled DSC MOF files.

First 30 seconds

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.

Operational verification

configuration → compile → MOF → LCM

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
PowerShell Desired State Configuration
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformPowerShell Desired State Configuration · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when working with compiled DSC MOF files.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • MOF files are compiled configurations, one per node.
  • They contain resolved settings.
  • Credentials in MOFs must be encrypted with certificates.
Key checks
  • 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.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docPowerShell Desired State Configuration current

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%
Depth when you need it

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.

Confirmation

Confirm action

Continue?