Results 1 to 6 of 6
  1. #1
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Alzano Lombardo, Italy
    Posts
    1,483
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Are there any files on a pc's harddisk I could look at that tell me when the previous time the pc had been turned on was and for how long?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    [quote name='grovelli' post='763326' date='04-Mar-2009 14:28']Are there any files on a pc's harddisk I could look at that tell me when the previous time the pc has been turned on was and for how long?[/quote]
    On my PC there's a file SchedLgU.Txt in C:\Windows that records when the Task Scheduler service was started and stopped. This usually coincides with Windows being started and shut down. Part of the file looks like this:

    "Task Scheduler Service"
    Started at 03/03/2009 08:51:06
    "Task Scheduler Service"
    Exited at 03/03/2009 14:55:21
    "Task Scheduler Service"
    Started at 04/03/2009 08:39:25
    [ ***** Most recent entry is above this line ***** ]

  3. #3
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Alzano Lombardo, Italy
    Posts
    1,483
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ain't that just dandy!!!
    Hans

  4. #4
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    3,421
    Thanks
    33
    Thanked 195 Times in 175 Posts
    [quote name='grovelli' post='763329' date='04-Mar-2009 13:52'][/quote]
    The System Event Log contains "eventlog" records 6006 and 6009 when a PC is powered on.and record 6005 at normal shutdown.

    The SysInternals program PsLogList can be used to extract just these records, and you can process the results even further.
    BATcher

    Time prevents everything happening all at once...

  5. #5
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Alzano Lombardo, Italy
    Posts
    1,483
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi, thanks for your input as well; the PsTools command-line suite sounds really useful for helping in administering local and remote computers, are you Mark Russinovich?

  6. #6
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    3,421
    Thanks
    33
    Thanked 195 Times in 175 Posts
    [quote name='grovelli' post='763404' date='04-Mar-2009 18:40']...are you Mark Russinovich?[/quote]
    Not personally - I just use many of his utilities!
    BATcher

    Time prevents everything happening all at once...

Posting Permissions

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