Pcornel
Automation · PowerShell DSC

Local Configuration Manager

Cheat sheet · https://pcornel.dk/topic.php?topic=5681

Back to the Topic

Answer

The Local Configuration Manager (LCM) is the DSC engine on each node that applies configurations, runs consistency checks and controls refresh mode, frequency and reboot behaviour.

Remember

  • The LCM controls refresh mode, configuration mode and frequency.
  • It also controls reboot behaviour.
  • Configure it with a meta-configuration.

First checks

  • Get-DscLocalConfigurationManager — LCM settings
  • Set-DscLocalConfigurationManager -Path .\meta — apply meta-config
  • ConfigurationModeFrequencyMins / RefreshFrequencyMins — intervals

Commands

Get-DscLocalConfigurationManager
Read-only/validation observation for LCM refresh/configuration modes, frequencies, certificate and pull/report settings.

Verify in this order

meta-configuration → LCM → apply/monitor

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=5681

Confirmation

Confirm action

Continue?