get-childitem -Path "\\servername\location" | where-object {$_.LastWriteTime -lt (get-date).AddDays(-10)} | move-item -destination "C:\Dumps"
-Recurse
get-childitem
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)