# Delete files older than 30 days that are not day 1 (fist of the month)
Get-ChildItem -path \\big-nas\Data\Backup\Database -r | Where-Object {($_.LastWriteTime -lt (Get-Date).AddDays(-30)) -and (($_.LastWriteTime).day -ne 1 )} |remove-item
Monday, March 23, 2020
Monday, March 16, 2020
TP-Link AC750 replacement USB charging cable issues
Subscribe to:
Posts (Atom)