none
Check what files have a old lastmodifiedtime RRS feed

  • Question

  • I would like to now what files have a time date 8h older

    How i can do this with powershell ?

    i make this:

    $compareDate = (Get-Date).AddDays(-15)
    @(Get-ChildItem -Path C:\temp\*.* -Filter '*.*' -Recurse | Where-Object { $_.LastWriteTime -gt $compareDate})

    It's working but i need to check with hours. How to do ?

    any help is welcome


    Sunday, May 7, 2017 5:05 PM

Answers