C:\Windows\System32\Configuration\ConfigurationStatus directory growing

This topic contains 8 replies, has 4 voices, and was last updated by Profile photo of selko selko 6 months ago.

  • Author
    Posts
  • #40550
    Profile photo of selko
    selko
    Participant

    Hi,

    i have installed PS V5 (5.0.10586.117).

    In this directory (C:\Windows\System32\Configuration\ConfigurationStatus) i can find over 10000 GUID-0.mof files (each 55KB) which are created every 30 minutes.

    It seems that these files are not being deleted. Can you please take a look and if you find also these files?

    Is this a bug or a problem on my side?

    Thanks

  • #40554
    Profile photo of selko
    selko
    Participant

    LCM Config:

    Get-DscLocalConfigurationManager

    ActionAfterReboot : ContinueConfiguration
    AgentId : 81CD540E-DC4D-11E5-A65A-0050569E002D
    AllowModuleOverWrite : True
    CertificateID : xxx
    ConfigurationDownloadManagers : {}
    ConfigurationID : 64926d8b-2d60-4ec5-859b-7ec4e06adf9e
    ConfigurationMode : ApplyAndAutoCorrect
    ConfigurationModeFrequencyMins : 60
    Credential :
    DebugMode : {NONE}
    DownloadManagerCustomData : {MSFT_KeyValuePair (key = "ServerUrl"), MSFT_KeyValuePair (key =
    "AllowUnsecureConnection")}
    DownloadManagerName : WebDownloadManager
    LCMCompatibleVersions : {1.0, 2.0}
    LCMState : Idle
    LCMStateDetail :
    LCMVersion : 2.0
    StatusRetentionTimeInDays : 10
    PartialConfigurations :
    RebootNodeIfNeeded : False
    RefreshFrequencyMins : 30
    RefreshMode : Pull
    ReportManagers : {}
    ResourceModuleManagers : {}
    PSComputerName :

  • #40557
    Profile photo of Zuldan
    Zuldan
    Participant

    I have a scheduled task clearing that directory every 24 hours. Might be worth opening up an issue on UserVoice.

  • #40563
    Profile photo of Arie H
    Arie H
    Participant

    its already on GitHub and the PS team is aware of it.
    Its the log files for the local database holding all the node information

    I believe ive seen it on uservoice but if you dont find it, they yes open a new one.

  • #40724
    Profile photo of Nitin Gupta
    Nitin Gupta
    Participant

    There is a default retention policy of 10 days that can't be customized in WMF 5.0 RTM. If you need to delete these files more aggressively you will have to use similar technique Zuldan is using.

  • #40738
    Profile photo of Nitin Gupta
    Nitin Gupta
    Participant

    Actually it can be customized using 'StatusRetentionTimeInDays' property of local configuration manager. However you can't configure it for less than 24 hours.

    [DSCLocalConfigurationManager()]
    configuration Test
    {
        settings
        {
            StatusRetentionTimeInDays = 1
        }
    }
    
    • #40747
      Profile photo of Nitin Gupta
      Nitin Gupta
      Participant

      After doing some testing myself, I realized that retention policy is not working and DSC is not deleting files. Your best bet is to use some scheduler to delete those files if you don't need them.

  • #40834
    Profile photo of Zuldan
    Zuldan
    Participant
    • #40865
      Profile photo of selko
      selko
      Participant

      Thanks Zuldan.

You must be logged in to reply to this topic.