I'd like to create a package that allows me to delete files and folders either by date range (e.g. 1/1/2005- 1/1/2015) or by x# of days (last modified or accessed, doesn't matter) to run when I want, or at a designated time/date.
In every iteration of package I've tried just as a test myself on my local PC (using CMD as the first step- rmdir /s /q/ \servername\dir) I'm met with Failed, error 2. Could simply be syntax, or whatever, but most importantly I'd like to ONLY remove files and folders of a certain age. Anyone ever try this or does it exist natively within PDQ Deploy or PDQ Inventory? Any help or suggestions is appreciated!
Please sign in to leave a comment.