DscLcmController provides advanced control over the DSC Local Configuration Manager (LCM), replacing default settings from Set-DscLocalConfigurationManager.
Use this resource when you need fine-grained control over DSC LCM behavior, including maintenance windows, auto-correct intervals, refresh intervals, and monitoring schedules. It goes beyond standard LCM meta-configuration by supporting scheduled tasks and registry-based configuration for advanced LCM orchestration.
These new settings are controlling the external trigger of the LCM.
There is no ConfigurationModeFrequencyMins anymore.
Instead there are two new values, AutoCorrectInterval and MonitorInterval.
Source |
|
DSC Resource |
|
Documentation |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
MaintenanceWindowMode |
Mandatory |
String |
This should be set to |
|
MonitorInterval |
Mandatory |
Timespan |
This interval invoked the LCM in the |
|
AutoCorrectInterval |
Mandatory |
Timespan |
This interval invoked the LCM in the |
|
AutoCorrectIntervalOverride |
Boolean |
If enabled the |
|
|
RefreshInterval |
Mandatory |
Timespan |
If this interval applies, the LcmController script triggers the LCM to do an update with the pull server. This interval applies only if in maintenance window. |
|
RefreshIntervalOverride |
Boolean |
If enabled the |
|
|
ControllerInterval |
Mandatory |
Timespan |
Controls when the scheduled task runs.
This interval is configured on the scheduled task’s ( |
|
MaintenanceWindowOverride |
Boolean |
If set to |
|
|
MaxLcmRuntime |
Timespan |
Maximum LCM runtime. If LCM process is running longer than specified time the LCM process will be killed. |
Default: 2 days |
|
LogHistoryTimeSpan |
Timespan |
Default: 90 days |
||
SendDscTaggingData |
Boolean |
Send DSC tagging data to the Pull server database |
|
|
WriteTranscripts |
Boolean |
Writes the scheduled tasks’ output to |
|
DscLcmController:
MaintenanceWindowMode: AutoCorrect
MonitorInterval: 02:00:00
AutoCorrectInterval: 00:15:00
AutoCorrectIntervalOverride: false
RefreshInterval: 04:00:00
RefreshIntervalOverride: false
ControllerInterval: 00:15:00
MaintenanceWindowOverride: false