{"id":156,"date":"2008-04-04T19:31:30","date_gmt":"2008-04-04T14:01:30","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/list-running-processes-and-their-creation-times\/"},"modified":"2019-05-12T03:00:13","modified_gmt":"2019-05-12T03:00:13","slug":"list-running-processes-and-their-creation-times","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/list-running-processes-and-their-creation-times\/","title":{"rendered":"List Running Processes And Their Creation Times"},"content":{"rendered":"<p>The Windows Task Manager does not list the creation time and date of running processes. To get this info, you may use one of these methods.<!--more--><\/p>\n<h2>Process Explorer<\/h2>\n<p><a target=\"_blank\" href=\"http:\/\/www.microsoft.com\/technet\/sysinternals\/Security\/ProcessExplorer.mspx\" rel=\"noopener noreferrer\">Process Explorer<\/a> is an excellent tool from Microsoft Sysinternals which shows a list of the currently active processes, along with many other important details. To view the process creation time, click the <i>View<\/i> menu in <em>Process Explorer<\/em>, and click <i>Select Columns&#8230;<\/i> In the <i>Process Performance<\/i> tab, place a checkmark near the option <i>Start Time<\/i>, and click <strong>OK<\/strong>. <i>Process Timeline<\/i> column may be useful, as well.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/04\/proctime1.png\" alt=\"Process creation time\" width=\"345\" height=\"481\" class=\"alignnone size-full wp-image-3235\" \/><\/p>\n<p>Now you&#8217;ll see an additional column named <strong>Start Time, shown at the last<\/strong>. You may drag the column to the beginning if needed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/04\/proctime2.png\" alt=\"Process creation time\" width=\"600\" height=\"350\" class=\"alignnone size-full wp-image-3234\" \/><\/p>\n<h2>WMI Script<\/h2>\n<p>Another option to get the list of running processes (along with their creation time) is using WMI, using <i>CreationDate<\/i> property in the <a target=\"_blank\" href=\"http:\/\/msdn2.microsoft.com\/en-us\/library\/aa394372(VS.85).aspx\" rel=\"noopener noreferrer\">Win32_Process<\/a> class. Here is a small script:<\/p>\n<pre><code>Set objFS = CreateObject(&quot;Scripting.FileSystemObject&quot;)\r\nSet objNewFile = objFS.CreateTextFile(&quot;ProcessList.txt&quot;)\r\nstrComputer = &quot;.&quot;\r\nSet objWMIService = GetObject(&quot;winmgmts:&quot; _\r\n&amp; &quot;{impersonationLevel=impersonate}!\\\\&quot; _\r\n&amp; strComputer &amp; &quot;\\root\\cimv2&quot;)\r\n\r\nSet dtmProcTime = CreateObject( _\r\n&quot;WbemScripting.SWbemDateTime&quot;)\r\n\r\nSet colProcesses = objWMIService.ExecQuery( _\r\n&quot;select * from win32_process&quot; )\r\n\r\nFor Each objProcess In colProcesses\r\nstrOutput = strOutput &amp; _\r\nobjProcess.Name &amp; &quot; (&quot; &amp; objProcess.ProcessID &amp; &quot;)&quot;\r\n\r\nIf NOT IsNull(objProcess.CreationDate) Then\r\nstrOutput = strOutput &amp; vbTab &amp; _\r\ngetmytime(objProcess.CreationDate)\r\nEnd If\r\n\r\nIf NOT IsNull(objProcess.ExecutablePath) Then\r\nstrOutput = strOutput &amp; vbTab &amp; _\r\nobjProcess.ExecutablePath\r\nEnd If\r\nstrOutput = strOutput &amp; vbCrLf\r\nNext\r\nobjNewFile.WriteLine strOutput\r\n\r\nFunction getmytime(wmitime)\r\ndtmProcTime.Value = wmitime\r\ngetmytime = dtmProcTime.GetVarDate\r\nEnd Function<\/code><\/pre>\n<p>Copy the above code to Notepad and save the file as Proclist.vbs. Double-click the file to execute it, and it creates a text file named <strong>ProcessList.txt<\/strong> in the same folder where the script resides.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/04\/processes-list-notepad.png\" alt=\"list running process\" width=\"650\" height=\"345\" class=\"alignnone size-full wp-image-3536\" \/><\/p>\n<p>The text file contains the list of process names with their creation times, sorted in chronological order.<\/p>\n<h2>Using <a target=\"_blank\" href=\"https:\/\/www.winhelponline.com\/xp\/listproc.htm\" rel=\"noopener noreferrer\">WMIC<\/a> (WMI&#8217;s Command-line tool)<\/h2>\n<p>To get the list of running processes with their creation times, open a Command Prompt window (CMD.EXE) and type the following command:<\/p>\n<pre>WMIC PROCESS GET NAME, CREATIONDATE<\/pre>\n<p>Press ENTER. You&#8217;ll see output similar to below:<\/p>\n<pre>20160608113122.658330+330 chrome.exe\r\n20160608114051.136181+330 ShellExperienceHost.exe\r\n20160608114422.533003+330 NisSrv.exe\r\n20160608114515.118887+330 dllhost.exe\r\n20160608114916.195621+330 chrome.exe\r\n20160608115108.793552+330 chrome.exe\r\n20160608115516.446428+330 Greenshot.exe<\/pre>\n<p>The date\/time stamp is shown in the following <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/aa387237(v=vs.85).aspx\" target=\"_blank\" rel=\"noopener noreferrer\">WMI time format<\/a>:<\/p>\n<pre><i>yyyymmddHHMMSS<\/i><\/pre>\n<p>To understand the WMI date and time format and to convert it to usual format, see article <a target=\"_blank\" href=\"https:\/\/technet.microsoft.com\/en-us\/library\/ee156576.aspx?f=255&#038;MSPPError=-2147217396\" rel=\"noopener noreferrer\">Converting WMI Dates to a Standard Date-Time Format<\/a> at Microsoft Windows Scripting Guide Website.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Windows Task Manager does not list the creation time and date of running processes. To get this info, you may use one of these methods.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[7],"tags":[480],"class_list":["post-156","post","type-post","status-publish","format-standard","hentry","category-windows","tag-scripts"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":3346,"url":"https:\/\/www.winhelponline.com\/blog\/procmon-track-process-creation-exit-time\/","url_meta":{"origin":156,"position":0},"title":"Track Process Creation and Exit Time Using Process Monitor","author":"Ramesh","date":"June 21, 2016","format":false,"excerpt":"Summary: This post tells you how to track process creation and exit events using the Process Monitor utility. My previous post, List Running Processes, helps you track down currently running processes. And the article Command Prompt Opens and Closes immediately\u00a0tells you if a last run program window was a scheduled\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"process creation and exit time","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/06\/proclist-0.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/06\/proclist-0.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/06\/proclist-0.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":42,"url":"https:\/\/www.winhelponline.com\/blog\/configure-task-manager-to-display-full-path-of-running-processes\/","url_meta":{"origin":156,"position":1},"title":"Task Manager: Show Command-line and Image Path of Running Processes","author":"Ramesh","date":"March 3, 2008","format":false,"excerpt":"Out of all the built-in troubleshooting tools in Windows, Task Manager is probably the most useful tool. Almost every end-user knows what to do when an application stalls. They just fire up Task Manager using Ctrl + Shift + Esc and end the nonresponsive task. Also, Task Manager can be\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"task manager show command line","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/03\/taskmgr_command_line_4.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":895,"url":"https:\/\/www.winhelponline.com\/blog\/services-svchost-windows\/","url_meta":{"origin":156,"position":2},"title":"Multiple Svchost.exe in Task Manager; View Services Running Under Each Svchost.exe","author":"Ramesh","date":"May 2, 2009","format":false,"excerpt":"Svchost.exe is a process that hosts Windows services to perform various functions. There can be multiple instances of svchost.exe (host process for Windows services) running on your computer, with each instance containing different services. Especially on Windows 10 v1709 and Windows 11, you might see 50+ Svchost.exe processes. Using Task\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"process explorer - svchost.exe - list of services","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2009\/05\/procmon-svchost-services-list.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2009\/05\/procmon-svchost-services-list.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2009\/05\/procmon-svchost-services-list.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2009\/05\/procmon-svchost-services-list.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":1107,"url":"https:\/\/www.winhelponline.com\/blog\/determine-program-process-owns-error-message-window\/","url_meta":{"origin":156,"position":3},"title":"How to Find Which Program Owns an Error Message Window","author":"Ramesh","date":"November 8, 2010","format":false,"excerpt":"Error message dialog boxes usually have title bar text containing the application or process name that generated the error. However, you may sometimes encounter a pop-up window with no text in the title bar, making you guess which program has caused the error. Let's say 100+ processes are showing up\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"process explorer find window handle - drag and drop","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/11\/procexp-drag-window-finder.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/11\/procexp-drag-window-finder.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/11\/procexp-drag-window-finder.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/11\/procexp-drag-window-finder.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":1062,"url":"https:\/\/www.winhelponline.com\/blog\/resource-monitor-find-process-locked-file-windows-7\/","url_meta":{"origin":156,"position":4},"title":"How to Use Resource Monitor to Find Which Process Has Locked a File","author":"Ramesh","date":"July 21, 2010","format":false,"excerpt":"Many folks use Process Explorer from Windows Sysinternals to gather information about running processes and their open handles. In addition, there is an excellent but less familiar utility in-built with Windows 7 and higher (including Windows 10\/11). The built-in utility is Resource Monitor, which provides complete details of running processes,\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"openfiles","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/10\/openfiles-4.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1166,"url":"https:\/\/www.winhelponline.com\/blog\/determine-parent-process-of-running-process\/","url_meta":{"origin":156,"position":5},"title":"How to Determine the Parent Process of a Running Process in Windows?","author":"Ramesh","date":"June 3, 2012","format":false,"excerpt":"You may have come across situations where a continuous hard disk activity taking place although your system being in an idle state. If you open Task Manager out of curiosity, you may find several processes starting and exiting of their own without you doing anything. It could be a scheduled\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived\/parentproc-3.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived\/parentproc-3.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived\/parentproc-3.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=156"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/156\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}