Removing files with DSC

Welcome Forums DSC (Desired State Configuration) Removing files with DSC

Viewing 1 reply thread
  • Author
    • #42432
      Topics: 1
      Replies: 4
      Points: 0
      Rank: Member

      Is anyone aware of a DSC resource module that will allow me to do a search through a directory structure and delete files with specific names and/or extensions? The builtin File resource doesn’t allow wildcards in the path itself, just the file name.

      I have a script to complete this already but I was curious if I could do it through DSC instead.


    • #42470
      Topics: 5
      Replies: 261
      Points: -19
      Rank: Member

      Nothing built in or nothing I seen on GitHub, but you can use the Script Resource that’s built-in to run a script you already have.

Viewing 1 reply thread
  • The topic ‘Removing files with DSC’ is closed to new replies.