search
Categories
Archive
Blogroll

Badges

Microsoft PowerShell MVP
MCSE
Sponsors

VirtualMetric
Cozumpark Bilisim Portali
How to get total elapsed time of processes with PowerShell
Posted in Windows Powershell | No Comment | 13,508 views | 27/05/2013 10:35

I’ll show you how to get total elapsed time for processes in same output with using Label and Expression function of PowerShell. You can see the command below:

(Get-Process | ft Name,@{label="Elapsed Time";expression={[System.Math]::Round(((Get-Date)-$_.StartTime).TotalSeconds)}})

You can execute additional commands with Expression function in same PowerShell command.



Leave a Reply