Change the Path and Days Accordingly
Get-ChildItem -Path "C:\" -Include "*.*" -Recurse | where {$_.LastWriteTime -le $(get-date).AddDays(-365)}
Get-ChildItem -Path "C:\" -Include "*.*" -Recurse | where {$_.LastWriteTime -le $(get-date).AddDays(-365)}
No comments:
Post a Comment