Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 34890

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

$
0
0

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

 


Viewing all articles
Browse latest Browse all 34890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>