Wednesday 18 June 2014

Windows Powershell - Find Old Files

Change the Path and Days Accordingly

Get-ChildItem -Path "C:\" -Include "*.*" -Recurse | where {$_.LastWriteTime -le $(get-date).AddDays(-365)}

No comments:

Post a Comment