Automation · PowerShell DSC
MOF
Cheat sheet · https://pcornel.dk/topic.php?topic=5680
Answer
MOF files are the compiled output of a DSC configuration, one per node, containing the resolved resource settings the LCM applies.
Remember
- MOF files are compiled configurations, one per node.
- They contain resolved settings.
- Credentials in MOFs must be encrypted with certificates.
First checks
Get-ChildItem .\mof\*.mof— compiled MOFs- Checksum files for pull server — integrity
- Credentials encrypted in MOF (certificate) — security
Verify in this order
configuration → compile → MOF → LCM
Where it usually breaks
Script/input → command/module binding → local/remoting session → request accepted → command result → target object read-back → effective runtime state → workload.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5680