#######################################
# Skrypt PowerShella
# (C) dr Holger Schwichtenberg
# http://www.powershell-doktor.de
########################################

$dir = "c:\temp"
$time = [DateTime]::Now

#dir $dir | select name, creationtime, lastaccesstime, lastwritetime
#dir $dir | Set-FileTime -Time $time -SetCreatedTime -SetModifiedTime
#dir $dir | select name, creationtime, lastaccesstime, lastwritetime


# Wszystkie dane zmienione dzisiaj

#Get-ChildItem c:\temp | Where-Object { ($_.LastWriteTime).Date -eq (Get-Date).Date }

# Wszystkie dane zmienione w ostatnim miesiącu

Get-ChildItem c:\temp | Where-Object { ($_.LastWriteTime).Date -gt (Get-Date).AddMonths(-1).Date }