Find Latest Processes

by Apr 12, 2011

You should try this piece of code to find all processes that were started within the past 10 minutes:

Get-Process | Where-Object { try { (New-Timespan $_.StartTime).TotalMinutes -le 10} catch { $false } }

This  will only cover processes that you started yourself—unless you have Administrator privileges.

 

Twitter This Tip!
ReTweet this Tip!