Finding either boot time or login time

Owen Rees owen.rees@hp.com
Fri Jan 30 22:45:00 GMT 2009


--On 30 January 2009 10:58 -0500 Brian Mathis wrote:

> I've noticed that, on Vista, "net stats srv" always seems to return
> 1980, while systeminfo returns the correct result.

On this Vista system right now "net stats srv" says:

  Statistics since 27/01/2009 16:04:50

systeminfo says

  System Boot Time:          29/01/2009, 12:13:49

There is an event in the event log:

Log Name:      System
Source:        EventLog
Date:          27/01/2009 16:04:44
Event ID:      6013
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:
Description:
The system uptime is 39 seconds.

There is nothing in the event log near 29/01/2009, 12:13:49 that suggests a 
reboot happened then, and I don't think I rebooted then and the latest 
USER32/1074 "Shutdown Type: restart" was at 27/01/2009 14:44:39.

A later event says:

Date:          30/01/2009 12:00:59
The system uptime is 85630 seconds.

Which is consistent with the 29/01/2009, 12:13:49 time and so almost 
certainly wrong.

This is a dual core laptop that has been in hibernation since booting so 
make what you will of what the numbers say. If Windows does not have a way 
to report last boot time accurately then there is not really anything 
cygwin can do to get around that.

-- 
Owen Rees; speaking personally, and not on behalf of HP.
========================================================
Hewlett-Packard Limited.   Registered No: 690597 England
Registered Office:  Cain Road, Bracknell, Berks RG12 1HN


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list