Is there a way to determine the 'uptime' of a process in Windows. Disappointed to find that it is not one of the attributes available when using the Task Manager.
You can see this with Process Explorer. In the taskbar menu select
View and check
Show Process Tree and the
Show Lower Pane options. Right click on any column and
Select Columns, now click on the
Process Performance tab and check the
Start Time box.
This can be done using Powershell.
Run it as admin and then execute
Get-Process | select name, starttime
You will get a list of all running processes and their start times
If you're on a server where you cannot install any external tool, you still can :
- Open the task manager
- Click on the process tab
- Locate your process
- Right click on it
- Select the Properties option
You can see a "creation date" right there, which should be the creation date of your process. With a simple substraction you can deduce the uptime.
maybe you can try procxp http://technet.microsoft.com/en-us/sysinternals/bb896653
With the PID from Task Manager, you can use the following Powershell command with the implied -End (Get-Date):
New-Timespan -Start (Get-Process -Id PID).StartTime