ForFiles on all servers This topic contains 1 reply, has 2 voices, and was last updated by Daniel Krebs 7 months, 2 weeks ago. Author Posts August 11, 2016 at 2:03 pm #50019 Efff ddParticipant Hello I was hoping to just implement something small to clean up IIS log files without compressing, archiving etc. can I use forfiles with DSC to create a Taskschd.msc? forfiles /p "C:\inetpub\logs\LogFiles" /s /m *.* /c "cmd /c Del @path" /d -30 thank you August 11, 2016 at 2:11 pm #50021 Daniel KrebsParticipant Check out the xScheduledTask DSC resource in the xComputerManagement DSC module. https://github.com/PowerShell/xComputerManagement https://github.com/PowerShell/xComputerManagement/blob/dev/Examples/Sample_xScheduledTask.ps1 https://www.powershellgallery.com/packages/xComputerManagement/ Author Posts You must be logged in to reply to this topic.