Powershell script how I would find files less than 24 hours old in a certain directory.
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 :