There are various ways to get the start time of a process or a program in windows. Some of the techniques require us to install external software such as process monitor. But in this post, we will see how to get the process start time using built-in PowerShell.
PowerShell is built into Windows and it can be used to get the process start time. The below script will get us the start time.
The output of the above script is shown in the image.
Please note that the above script is specifically meant to work for File explorer.
If you want to make it work for another process, you have to replace the name parameter with the desired one.
For example, the below command will get the start time of the Powershell.
There are other factors that might interest you and they are the total time for which the process is running.
The below script will get us the total time for which the PowerShell is running.
And finally, we can also see the total time the process is running for only the specific user. We will use the total user time to get the total time the process has been running for only a specific user.
The output of the above script is given below.
In this post, we came across various methods to get the total time the process is running. We can get the start time of the process, the total time the process has been running and also the total time the process has been running for a particular user.
For more such posts, stay tuned to TecKangaroo.