Created
February 23, 2017 02:40
-
-
Save douglascodes/71a796e50c42ee864d0d8d19743e61b0 to your computer and use it in GitHub Desktop.
Gets files where -14 days old. Can be turned into a function easily.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem -Recurse | Where-Object { $_.LastWriteTime -lt (Get-Date).AddDays(-14) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment