Restart / Shutdown Event

Using Windows Event Viewer

Using Command Prompt or Powershell

  1. Press Win + R to open the Run dialog.

  2. Type “cmd” and press Ctrl + Shift + Enter to open Command Prompt with elevated admin privileges.

  3. Enter the following command and replace the Event ID number with the number you want to see. In this case, it’s “6006.”

wevtutil qe system "/q:*[System [(EventID=6006)]]" /rd:true /f:text /c:1
  1. Enter the following command. Replace the numbers in the brackets to include any Event ID numbers you want

Get-EventLog -LogName System |? {$_.EventID -in (6005,6006,6008,6009,1074,1076)} | ft TimeGenerated,EventId,Message -AutoSize -wrap

Using TurnedOnTimesView

  1. Since it is a portable tool, you will only need to unzip and execute the TurnedOnTimesView.exe file.

  2. It will immediately list the startup time, shutdown time, duration of uptime between each startup and shutdown, shutdown reason, and shutdown code.

TurnedOnTimesView program in action.
  1. It will also display a “Shutdown Reason” which is usually associated with Windows Server machines where you have to give a reason if you are shutting down the server. If you have a non-server edition of Windows, you likely won’t see a “Shutdown Reason” listed.

  2. Press F9 to go to “Advanced Options.”

  3. Select “Remote Computer” under “Data Source.”

Switching to "Remote Computer" option in "Data Source."
  1. Specify the IP address or name of the computer in the “Computer Name” field and press the “OK” button. Now the list will show the details of the remote computer.

Specifying IP address under "Computer Name" in TurnedOnTimesView program.

While you can always use the event viewer for detailed analysis of startup and shutdown times, TurnedOnTimesView serves the purpose with a very simple interface and to-the-point data.


REFERENCES

Last updated

Was this helpful?