Please feel free to provide feedback or file bugs here.

DSC StatusRetentionTimeInDays is not deleting files

WMF 5 RTM

StatusRetentionTimeInDays is not deleting files in C:\Windows\System32\Configuration\ConfigurationStatus as per http://powershell.org/forums/topic/cwindowssystem32configurationconfigurationstatus-directory-growing/#post-40747

10 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)

    We’ll send you updates on this idea

    ZuldanZuldan shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Daniël BothDaniël Both commented  ·   ·  Flag as inappropriate

        Just noticed configuring StatusRetentionTimeInDays does make a difference though, after setting up a scheduled task to manually remove the status files, DSC started to log a huge amount of 4346 events in the Desired State Configuration log with the message:

        The DSCConfigurationStatus mof file not found at C:\Windows\System32\Configuration\ConfigurationStatus\{SOME-GUID}-0.mof.

        After configuring StatusRetentionTimeInDays to 1 (we delete status files once a day) this behavior stopped. Seems like the LCM does keep track of the status files it has to delete...

      Feedback and Knowledge Base