I am looking for a PowerShell routine that will prune logfiles based on the date of my oldest backup. I keep a week of daily backups and wish to run this routine weekly. Also, as I am brand new to Powershell, how can you schedule it to run from the Windows Scheduler?
Any one have a powershell script to prune DB2 Logfiles?
Collapse