Powershell script to delete files by date
Do you mind explaining it for me? It seemed to me that these were "talking" names for folders that you might want to backup and retension.. To continue this discussion, please ask a new question. Spiceworks Help Desk. The help desk software for IT. Track users' IT needs, easily, and with only the features you need.
Learn More ». Get answers from your peers along with millions of IT pros who visit Spiceworks. Active 2 years ago. Viewed 16k times.
Improve this question. Kit Menke 4, 6 6 gold badges 29 29 silver badges 40 40 bronze badges. Nice job finding the solution! Can you post it as an answer now? Add a comment. Active Oldest Votes. Improve this answer. MSallal MSallal 4 4 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Process Exit Code The step failed.
So hopefully using the above syntax will also fix that. Thing is the trn files normally need the bak file that precedes them to allow a restore. So if you run your full. Therefore the script should ideally be modified to delete all. Your email address will not be published. Notify me of follow-up comments by email. Notify me of new posts by email.
This site uses Akismet to reduce spam. Learn how your comment data is processed. Then we find the oldest full backup file, and delete all the t-log files older than that Share this:. Yaniv Etrogi. Thanks -Yaniv.
0コメント