How can your organization benefit from savings just by replacing your legacy backup solutions with Acronis' #CyberProtection? Join Forrester's Joe Branca and Ryan Davis from Acronis live as they explain how you can too.
Do more with
Get-ChildItem –Path "\\server\folder" -filter "Downloads" | Where-Object {($_.LastWriteTime -lt (Get-Date).AddDays(-60))} | Remove-Item
$Downloads = Get-ChildItem –Path Driveletterforprofiles -filter "Downloads"
Foreach ($Download in $Downloads){ Get-ChildItem –Path $Download -recurse | Where-Object {($_.LastWriteTime -lt (Get-Date).AddDays(-60))} | Remove-Item -force}
get-childitem D:\SchoolData\StaffData\ -filter Downloads | Get-ChildItem | Where-Object {($_.LastWriteTime -lt (Get-Date).AddDays(-60))} | Remove-Item
get-childitem D:\SchoolData\StaffData\ -filter Downloads | Get-ChildItem | Where-Object {($_.LastWriteTime -lt (Get-Date).AddDays(-60))}
Premium Content
You need an Expert Office subscription to comment.Start Free Trial