X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Date: Fri, 30 Jan 2009 17:02:02 +0000 From: Owen Rees To: cygwin AT cygwin DOT com Subject: Re: Finding either boot time or login time Message-ID: <8D4EE6ADBA96AD4B76C7F09E@rrees2.emea.hpqcorp.net> In-Reply-To: <183c528b0901300758i4c633f65t7162f96f246d1d17@mail.gmail.com> References: <4982FB77 DOT 7020505 AT byu DOT net> <183c528b0901300758i4c633f65t7162f96f246d1d17 AT mail DOT gmail DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-HPL-MailScanner: Found to be clean X-HPL-MailScanner-From: owen DOT rees AT hp DOT com X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --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/