Results 1 to 8 of 8

Thread: PC restart time

  1. #1

    Thread Starter
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    PC restart time

    Hi all,

    If I restart the PC, is time log in event viewer or somewhere locally in the PC?

    Thanks.
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

  2. #2
    Hyperactive Member vbcode1980's Avatar
    Join Date
    Nov 2005
    Location
    Anywhere the wind blows
    Posts
    365

    Re: PC restart time

    There is a Windows commandline application called uptime.exe that shows you how long the pc has been on.

    More info here:
    http://www.winxptutor.com/uptime.htm
    I code C#....

  3. #3
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: PC restart time

    Don't know if this is what you want...

    If you are using XP

    click Start, point to Settings, and then click Control Panel. Double-click Administrative Tools, and then double-click Event Viewer.

    Click on system node under Event Viewer (local)
    Click on menu View=>Find and type say "shutdown"
    It will take you to the last entry of shutdown..

    You can read more about it in the windows help file...

    Hope this is what you wanted?
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  4. #4

    Thread Starter
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Re: PC restart time

    Quote Originally Posted by koolsid
    Don't know if this is what you want...

    If you are using XP

    click Start, point to Settings, and then click Control Panel. Double-click Administrative Tools, and then double-click Event Viewer.

    Click on system node under Event Viewer (local)
    Click on menu View=>Find and type say "shutdown"
    It will take you to the last entry of shutdown..

    You can read more about it in the windows help file...

    Hope this is what you wanted?
    Actually I've already check on EventViewer. As you said I search like shutdown, restart. But it not give any correct infor. Once I search for shutdown I only found one instance with the source name as USER32. But it's wrong dated. Not the correct one.
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

  5. #5

    Thread Starter
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Re: PC restart time

    Quote Originally Posted by vbcode1980
    There is a Windows commandline application called uptime.exe that shows you how long the pc has been on.

    More info here:
    http://www.winxptutor.com/uptime.htm

    Yep, this is what I'm looking.

    I wonder on this. If that exe can find those details, anyhow should recorded those details locally in somewhere. Do you have any idea about that. That link doesn't provide more details about that.
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

  6. #6
    Hyperactive Member vbcode1980's Avatar
    Join Date
    Nov 2005
    Location
    Anywhere the wind blows
    Posts
    365

    Re: PC restart time

    Quote Originally Posted by eranga262154
    Yep, this is what I'm looking.

    I wonder on this. If that exe can find those details, anyhow should recorded those details locally in somewhere. Do you have any idea about that. That link doesn't provide more details about that.
    http://www.microsoft.com/technet/scr...5/hey0802.mspx
    I code C#....

  7. #7
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: PC restart time

    It is true that it is a bit odd that a shutdown is not logged clearly in the event log... but usually the last event logged whenever a shutdown is initiated is the "The event log service was stopped" entry. The event log service cannot be stopped manually and if it crashes then the machine will restart anyway, so you know that whenever you see that event then the machine has started to shut down.
    Hope that helps.
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  8. #8
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: PC restart time

    as far as i am aware, the event log only stores shutdown info on server systems (2003, 2008, 2000 server)
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width