PowerShell: some simple snippets

Some simple PowerShell snippets I find useful.

Not worthy of their own pages, but useful nevertheless.

Show the start time of process

#
Get-Process | Select-Object id, starttime, name | Sort-Object starttime
#

Search inside a set of files for a string

#
$searchFiles = Get-ChildItem F:\files\ -Filter *.ext -Recurse
$searchFiles | Select-String -Pattern "find this string"
#