Powershell File – Suche nach Dateien zuletzt modifiziert älter als x Stunden

get-childitem “D:\DATA\Desktop” -recurse | where-object {$_.mode -notmatch “d”} | where-object {$_.lastwritetime -gt [datetime]::Now.AddHours(-1)} | format-table lastwritetime, fullname -autosize | out-file C:\Temp\LastMod.log -append

powershell-file-last-modified

get-childitem “D:\DATA\Desktop” -recurse | where-object {$_.mode -notmatch “d”} | where-object {$_.lastwritetime -gt [datetime]::parse(“25/09/2016”)} | format-table lastwritetime, fullname -autosize | out-file C:\Temp\LastMod.log -append