I want to know when my PC turns on or off. Is there a way to know this?

I have admin rights.

  • Something like this? maketecheasier.com/… – SQLTemp Jan 17 at 13:19
  • Is that! Thanks – Emilio Platzer Jan 17 at 13:44
  • For the current session you can get this from TaskManager->Detailed information tab->right click list header->choose column->check CPU time, then see the time elapsed of System Idle Process. – jw_ Jan 18 at 4:32

Per the link in the comment by @SQLTemp, the answer is to examine the System log in the Event Viewer for Event IDs 6005 (Event Log Service startup, proxy for system startup) and 6006 (Event Log Service shutdown, proxy for system shutdown).

There are other useful Event IDs related to system startup and shutdown; Event ID 6013 gives the computer's uptime, 6008 flags a startup after an improper shutdown, and 6009 gives the CPU type detected.

Note that the Event Viewer does have provisions for connecting to a remote computer, so you can get this information for another computer without having to actually sit at its keyboard.

You can also query this information in a PowerShell script using the Get-EventLog cmdlet.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.