Successfully added
Windows
by Patrik
Inspecting DSC Configuration and Status Retention Settings
Once the folder size is known, inspect how DSC is configured and whether it should be removing old status records.
Check the types of files stored in the status folder:
Get-ChildItem "C:\Windows\System32\Configuration\ConfigurationStatus" |
Group-Object Extension |
Sort-Object Count -Descending |
Select-Object Count, Name
This provides insight into what DSC is generating and whether unexpected file types are present.
Review the Local Configuration Manager (LCM) configuration:
Get-DscLocalConfigurationManager | Select-Object *
Pay particular attention to:
| Setting | Purpose |
|---|---|
| ConfigurationMode | Defines how DSC applies configurations |
| RefreshMode | Determines how configurations are received |
| StatusRetentionTimeInDays | Controls how long status history is kept |
| RefreshFrequencyMins | Defines how often DSC checks for updates |
Finally, inspect the recorded DSC execution history:
Get-DscConfigurationStatus -All
If DSC reports deserialization errors, the status history or DSC state information may be corrupted and additional repair steps will be required.
DSC
LCM
Configuration
Audit
PowerShell
Referenced in:
Comments