Use this when configuring the DSC engine on nodes.
Local Configuration Manager
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.
1. LCM is the DSC engine on each node.
2. Configure mode, refresh, reboot behaviour, certificates.
3. ApplyAndAutoCorrect for enforcement.
4. RebootNodeIfNeeded carefully.
5. Monitor LCM state.
meta-configuration → LCM → apply/monitor
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Get-DscLocalConfigurationManagerPrimary Commands
Configuration and operational commands for this Topic.
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 Command read-back and what it shows Verify boundary
Get-DscLocalConfigurationManager is the bounded verification surface selected for PowerShell DSC → Local Configuration Manager. A known-good result is LCM reports the intended refresh/configuration modes, source/registration identity and schedule, obtains the expected configuration and completes a consistency cycle without persistent error. Treat wrong mode/source, stale configuration generation, pull/registration errors, suspended/pending reboot state or repeated consistency failures persist as broken/suspicious. Get-DscLocalConfigurationManager shows LCM meta-configuration reported by the node, but it does not show resource compliance, pull-server health beyond observed interactions or application health.
Step 2 Common mistakes Narrow the fault
- LCM settings not set as intended.
Step 3 Observation-driven branch and next-check logic Narrow the fault
For a failing PowerShell DSC → Local Configuration Manager case, freeze scope first: target/object, desired revision or request, and failure time. Inspect Get-DscLocalConfigurationManager. Branch on evidence rather than labels: if LCM mode or refresh source is unexpected, correct meta-configuration before resource debugging; if settings are correct but pull/refresh fails, inspect registration/TLS/network; if LCM is healthy and current but resource state fails, move to DSC resource diagnostics.
- The LCM controls refresh mode, configuration mode and frequency.
- It also controls reboot behaviour.
- Configure it with a meta-configuration.
Get-DscLocalConfigurationManager— LCM settingsSet-DscLocalConfigurationManager -Path .\meta— apply meta-config- ConfigurationModeFrequencyMins / RefreshFrequencyMins — intervals
ReferenceHow it works1 section · depth on demand
How it works
In PowerShell DSC → Local Configuration Manager, effective state is split across LCM meta-configuration, refresh mode/frequency, configuration mode, reboot policy and pull registration state that governs when DSC evaluates or changes a node. The Local Configuration Manager schedules consistency checks and obtains desired configuration according to meta-configuration; its mode determines whether drift is only reported or actively corrected. Pull-server connectivity, certificates, registration keys, resource modules and Windows Management Framework version remain separate dependencies. This matters because a valid desired MOF can remain unapplied when LCM refresh/pull state is wrong, while an active LCM can repeatedly enforce an unintended old configuration.
ReferenceImportant terms & boundaries1 section · depth on demand
Method
The Local Configuration Manager (LCM) is the DSC engine on each node; troubleshooting DSC usually means inspecting what the LCM is doing.
1. Check LCM settings: Get-DscLocalConfigurationManager (RefreshMode, ConfigurationMode, intervals).
2. Check the current status: Get-DscConfigurationStatus and Test-DscConfiguration -Detailed.
3. Read the DSC event log: Microsoft-Windows-DSC/Operational.
4. Re-apply verbosely: Start-DscConfiguration -UseExisting -Wait -Verbose.
| ConfigurationMode | Behaviour |
|---|---|
| ApplyOnly | Apply once, no monitoring |
| ApplyAndMonitor | Apply, then report drift |
| ApplyAndAutoCorrect | Apply and fix drift every interval |
| Symptom | Likely cause |
|---|---|
| "Pending configuration" stuck | Previous run waiting for reboot |
| Resource not found | Module not installed on the node |
| Drift keeps reappearing | GPO or another tool changes the same setting |
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 > Local Configuration Manager. 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%