PowerTip: Use PowerShell to Return Only Processes that Display a Start Time

Doctor Scripto

Summary: Use Windows PowerShell to display processes that return a StartTime property value.

Hey, Scripting Guy! Question How can I filter process information so that only processes that return a StartTime display?

Hey, Scripting Guy! AnswerUse Where-Object with the Get-Process cmdlet. Then filter on StartTime.

Get-Process | ? starttime | select name, starttime

 The following command uses Windows PowerShell 2.0 syntax:

Get-Process | ? { $_.starttime} | select name, starttime



Discussion is closed.

Feedback usabilla icon