Get-ChildItem \\fpdftp01\EXPRESS `
| Where-Object {$_.name -match "public*" -and $_.PSIsContainer -eq `
$false -and [datetime]::now.adddays(-3) -gt $_.LastaccessTime} `
| foreach ($_) {remove-item $_.fullname -ErrorAction SilentlyContinue `
-Force}
No comments:
Post a Comment