Powershell tips

Get-ChildItem

Using this you can get the file list from a directory. Gets the items and child items in one or more specified locations.

Get-ChildItem “<path>” -Recurse -Filter <*.*> | where {$_.LastWriteTime -le(Get-Date).AddDays(-<amount of days>) }

that command can delete older files from a directory. can be useful when making backups

Or get a list of files that were created today.

Get-ChildItem $source | where-object {$_.LastWriteTime -eq (Get-Date)}