I am trying to use to below Powershell script:
get-childitem -Path \\servername\location |
where-object {$_.LastWriteTime -lt (get-date).AddDays(-31)} |
move-item -destination "C:\Dumps"
The script works absolutely fine on testing but its not moving the files in subfolders.
Please help....