|
1 2 3 |
$limit = (Get-Date).AddDays(-30) $path = "C:\temp" Get-ChildItem -Path $path -Recurse -Force | Where-Object { !$_.PSIsContainer -and $_.CreationTime -lt $limit } #| Remove-Item -Force |
By zaw|
2017-02-28T12:57:42+01:00
Februar 28th, 2017|Powershell, Scripte|Kommentare deaktiviert für Dateien filtern, die älter als 30 Tage sind
Related Posts
-
Powershell: Ping aktivieren
Februar 1st, 2018 | Kommentare deaktiviert für Powershell: Ping aktivieren -
Gesamtstrukturfunktionsebene und Domänenfunktionsebene ändern
August 15th, 2017 | Kommentare deaktiviert für Gesamtstrukturfunktionsebene und Domänenfunktionsebene ändern -
Geräte GUID mit Powershell auslesen
März 17th, 2017 | Kommentare deaktiviert für Geräte GUID mit Powershell auslesen -
Powershell Modul für Google Maps
Juni 29th, 2016 | Kommentare deaktiviert für Powershell Modul für Google Maps