28

Is it possible to find out in Windows what the last restart time of a windows service is?

John Gardeniers
  • 27,458
  • 12
  • 55
  • 109
GurdeepS
  • 1,646
  • 5
  • 26
  • 33

2 Answers2

28

Building on Christian's answer... Use PowerShell:

(Get-EventLog -LogName "System" -Source "Service Control Manager" -EntryType "Information" -Message "*Computer Browser service*running*" -Newest 1).TimeGenerated;
Simon Catlin
  • 5,232
  • 3
  • 17
  • 20
  • 1
    Do any of these service state change events still get logged in Windows 10? (No entries generated for me when I do "net start spooler" for example.) – StackzOfZtuff Mar 01 '18 at 11:29
5

Look in the event log: The service control manager logs every time a service is stopped or started.

Christian
  • 1,052
  • 5
  • 16
  • 24
  • 4
    This is Event Viewer -> Windows Logs -> System, where Source is Service Control Manager. – ThomasH Aug 02 '16 at 08:07
  • Not all services are listed in the Event Log, for example BitLocker Drive Encryption Service can be running by has no Event Log start entry. – SharpC Jun 06 '19 at 13:27