in

WindowsWindows Loving ItLoving It

[WORKING] {NO Downloads} PowerShell Program Start Time 2020

There are several ways to get the program start time using third party apps but we will show you how to get it without any downloads using PowerShell

PowerShell start time

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 Get Computer Info 

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.

gps -name explorer | select starttime

The output of the above script is shown in the image.

get start time
get start time

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.

gps -name powershell | select starttime

get PowerShell start time
get PowerShell start time

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.

gps -name powershell | select TotalProcessorTime

PowerShell total processor time
PowerShell total processor time

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.

gps -name powershell | select UserProcessorTime

The output of the above script is given below.

powershell user processor time
powershell user processor time

Verdict:

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.

Leave a Reply

Your email address will not be published. Required fields are marked *