Welcome › Forums › DSC (Desired State Configuration) › ForFiles on all servers
This topic contains 1 reply, has 2 voices, and was last updated by
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
Check out the xScheduledTask DSC resource in the xComputerManagement DSC module.
The topic ‘ForFiles on all servers’ is closed to new replies.