Powershell script how I would find files less than 24 hours old in a certain directory.

8/06/2014 0 Comments




Here is how I would find files less than 24 hours old in a certain directory.

$filescreatedin24hrs = Get-ChildItem -Path "C:\Microsoft Exchange\" -Recurse | Where-Object { $_.CreationTime -gt (Get-Date).AddHours(-24) }| Select FullName


0 comments :