|
| | |||||||
| Windows XP Discuss the Microsoft Windows XP Operating System |
| | LinkBack | Thread Tools |
| |||
| Time since last reboot? Is there is any metric on Windows XP (ideally I'd like to get the information programmatically using the Windows API) from which I can determine the time since the last reboot of a Windows XP machine? Thanks in advance, Alain |
| |||
| Re: Time since last reboot? On 7/10/2007 10:04 AM On a whim, Alain Dekker pounded out on the keyboard > Is there is any metric on Windows XP (ideally I'd like to get the > information programmatically using the Windows API) from which I can > determine the time since the last reboot of a Windows XP machine? > > Thanks in advance, > Alain > > Hi Alain, In the Event Viewer under System, Source: eventlog, EventID: 6005, shows when the service was started. Usually on startup of the system. -- Terry R. ***Reply Note*** Anti-spam measures are included in my email address. Delete NOSPAM from the email address after clicking Reply. |
| |||
| Re: Time since last reboot? Thanks! I've now started to look int Event IDs 6005, 6006 and 6008 on your prompting...Next Task: Find out how to read the event list programmatically. Thanks again, Alain "Terry R." <F1ComNOSPAM@pobox.com> wrote in message news:uHqJ$bxwHHA.4140@TK2MSFTNGP04.phx.gbl... > On 7/10/2007 10:04 AM On a whim, Alain Dekker pounded out on the keyboard > >> Is there is any metric on Windows XP (ideally I'd like to get the >> information programmatically using the Windows API) from which I can >> determine the time since the last reboot of a Windows XP machine? >> >> Thanks in advance, >> Alain > > Hi Alain, > > In the Event Viewer under System, Source: eventlog, EventID: 6005, shows > when the service was started. Usually on startup of the system. > > -- > Terry R. > > ***Reply Note*** > Anti-spam measures are included in my email address. > Delete NOSPAM from the email address after clicking Reply. |
| |||
| Re: Time since last reboot? There are several possibilities - uptime.exe (downloadable from lots of sites) - net statistics server - net statistics workstation "Alain Dekker" <alain.dekker@NOSPAM.spectruminspectionsystems.co. uk> wrote in message news:uEZQbjxwHHA.2488@TK2MSFTNGP03.phx.gbl... > Thanks! I've now started to look int Event IDs 6005, 6006 and 6008 on your > prompting...Next Task: Find out how to read the event list > programmatically. > > Thanks again, > Alain > > "Terry R." <F1ComNOSPAM@pobox.com> wrote in message > news:uHqJ$bxwHHA.4140@TK2MSFTNGP04.phx.gbl... >> On 7/10/2007 10:04 AM On a whim, Alain Dekker pounded out on the keyboard >> >>> Is there is any metric on Windows XP (ideally I'd like to get the >>> information programmatically using the Windows API) from which I can >>> determine the time since the last reboot of a Windows XP machine? >>> >>> Thanks in advance, >>> Alain >> >> Hi Alain, >> >> In the Event Viewer under System, Source: eventlog, EventID: 6005, shows >> when the service was started. Usually on startup of the system. >> >> -- >> Terry R. >> >> ***Reply Note*** >> Anti-spam measures are included in my email address. >> Delete NOSPAM from the email address after clicking Reply. > > |
| |||
| Re: Time since last reboot? Reading the timestamp on the pagefile.sys will give you the starup time. You can also use Systinternal's PsInfo to get the information: http://www.microsoft.com/technet/sys...es/psinfo.mspx John Alain Dekker wrote: > Thanks! I've now started to look int Event IDs 6005, 6006 and 6008 on your > prompting...Next Task: Find out how to read the event list programmatically. > > Thanks again, > Alain > > "Terry R." <F1ComNOSPAM@pobox.com> wrote in message > news:uHqJ$bxwHHA.4140@TK2MSFTNGP04.phx.gbl... > >>On 7/10/2007 10:04 AM On a whim, Alain Dekker pounded out on the keyboard >> >> >>>Is there is any metric on Windows XP (ideally I'd like to get the >>>information programmatically using the Windows API) from which I can >>>determine the time since the last reboot of a Windows XP machine? >>> >>>Thanks in advance, >>>Alain >> >>Hi Alain, >> >>In the Event Viewer under System, Source: eventlog, EventID: 6005, shows >>when the service was started. Usually on startup of the system. >> >>-- >>Terry R. >> >>***Reply Note*** >>Anti-spam measures are included in my email address. >>Delete NOSPAM from the email address after clicking Reply. > > > |
| |||
| Re: Time since last reboot? On Jul 10, 2:07 pm, John John <audetw...@nbnet.nb.ca> wrote: > Reading the timestamp on the pagefile.sys will give you the starup time. > You can also use Systinternal's PsInfo to get the information:http://www.microsoft.com/technet/sys...es/psinfo.mspx > > John > > > > Alain Dekker wrote: > > Thanks! I've now started to look int Event IDs 6005, 6006 and 6008 on your > > prompting...Next Task: Find out how to read the event list programmatically. > > > Thanks again, > > Alain > > > "Terry R." <F1ComNOS...@pobox.com> wrote in message > >news:uHqJ$bxwHHA.4140@TK2MSFTNGP04.phx.gbl... > > >>On 7/10/2007 10:04 AM On a whim, Alain Dekker pounded out on the keyboard > > >>>Is there is any metric on Windows XP (ideally I'd like to get the > >>>information programmatically using the Windows API) from which I can > >>>determine the time since the last reboot of a Windows XP machine? > > >>>Thanks in advance, > >>>Alain > > >>Hi Alain, > > >>In the Event Viewer under System, Source: eventlog, EventID: 6005, shows > >>when the service was started. Usually on startup of the system. > > >>-- > >>Terry R. > > >>***Reply Note*** > >>Anti-spam measures are included in my email address. > >>Delete NOSPAM from the email address after clicking Reply.- Hide quoted text - > > - Show quoted text - Hello Alain, Not quite sure what you need in "the time since the last reboot", but if you just want to know the precise time a computer was logged into then you could run a batch file at startup. It would look like this: echo logon %username% %computername% %date% %time% >> C:\logon.log Copy the above line into Notepad and save as logon.bat Drag a shortcut of the .bat file to your startup folder (usually in the Start=> Programs menu) At every logon, the computer name, username and logon time is appended to the log file indicated. Of course, you can change the location as you wish. If you're looking for a GUI to track computer usage time then this freeware may help: PC On/Off Time http://www.snapfiles.com/get/pconoff.html |
| |||
| Re: Time since last reboot? Claymore <claymore@ontera.net> wrote in news:1184098992.229419.202670@w3g2000hsg.googlegro ups.com: > On Jul 10, 2:07 pm, John John <audetw...@nbnet.nb.ca> wrote: >> Reading the timestamp on the pagefile.sys will give you the starup >> time. >> You can also use Systinternal's PsInfo to get the >> information:http://www.microsoft.com/technet/sys...s/utilities/ps >> info.mspx >> >> John >> >> >> >> Alain Dekker wrote: >> > Thanks! I've now started to look int Event IDs 6005, 6006 and 6008 on >> > your prompting...Next Task: Find out how to read the event list >> > programmatically. >> >> > Thanks again, >> > Alain >> >> > "Terry R." <F1ComNOS...@pobox.com> wrote in message >> >news:uHqJ$bxwHHA.4140@TK2MSFTNGP04.phx.gbl... >> >> >>On 7/10/2007 10:04 AM On a whim, Alain Dekker pounded out on the >> >>keyboard >> >> >>>Is there is any metric on Windows XP (ideally I'd like to get the >> >>>information programmatically using the Windows API) from which I can >> >>>determine the time since the last reboot of a Windows XP machine? >> >> >>>Thanks in advance, >> >>>Alain >> >> >>Hi Alain, >> >> >>In the Event Viewer under System, Source: eventlog, EventID: 6005, >> >>shows when the service was started. Usually on startup of the >> >>system. >> >> >>-- >> >>Terry R. >> >> >>***Reply Note*** >> >>Anti-spam measures are included in my email address. >> >>Delete NOSPAM from the email address after clicking Reply.- Hide >> >>quoted text - >> >> - Show quoted text - > > Hello Alain, > > Not quite sure what you need in "the time since the last reboot", but > if you just want to know the precise time a computer was logged into > then you could run a batch file at startup. It would look like this: > > echo logon %username% %computername% %date% %time% >> C:\logon.log > > Copy the above line into Notepad and save as logon.bat > Drag a shortcut of the .bat file to your startup folder (usually in > the Start=> Programs menu) > At every logon, the computer name, username and logon time is appended > to the log file indicated. Of course, you can change the location as > you wish. > > If you're looking for a GUI to track computer usage time then this > freeware may help: > > PC On/Off Time > http://www.snapfiles.com/get/pconoff.html Here is an easy way...no 3rd party software required: http://www.helpwithwindows.com/windowsxp/howto-09.html |
| |||
| Re: Time since last reboot? Thanks, didn't even know of that command! Alain > Here is an easy way...no 3rd party software required: > > http://www.helpwithwindows.com/windowsxp/howto-09.html > |
| |||
| Re: Time since last reboot? On 7/12/2007 6:47 AM On a whim, Alain Dekker pounded out on the keyboard > Thanks, didn't even know of that command! > > Alain > >> Here is an easy way...no 3rd party software required: >> >> http://www.helpwithwindows.com/windowsxp/howto-09.html >> > > It appears that shows how long the system has been on, not when last logged in, doesn't it? -- Terry R. ***Reply Note*** Anti-spam measures are included in my email address. Delete NOSPAM from the email address after clicking Reply. |
| |||
| Re: Time since last reboot? "Terry R." <F1ComNOSPAM@pobox.com> wrote in news:#dUPVUJxHHA.5028@TK2MSFTNGP06.phx.gbl: > On 7/12/2007 6:47 AM On a whim, Alain Dekker pounded out on the keyboard > >> Thanks, didn't even know of that command! >> >> Alain >> >>> Here is an easy way...no 3rd party software required: >>> >>> http://www.helpwithwindows.com/windowsxp/howto-09.html >>> >> >> > > It appears that shows how long the system has been on, not when last > logged in, doesn't it? > Yes. See the subject line. |
| |||
| Re: Time since last reboot? On 7/12/2007 10:15 AM On a whim, Fuzzy Logic pounded out on the keyboard > "Terry R." <F1ComNOSPAM@pobox.com> wrote in news:#dUPVUJxHHA.5028@TK2MSFTNGP06.phx.gbl: > >> On 7/12/2007 6:47 AM On a whim, Alain Dekker pounded out on the keyboard >> >>> Thanks, didn't even know of that command! >>> >>> Alain >>> >>>> Here is an easy way...no 3rd party software required: >>>> >>>> http://www.helpwithwindows.com/windowsxp/howto-09.html >>>> >>> >> It appears that shows how long the system has been on, not when last >> logged in, doesn't it? >> > > Yes. See the subject line. I asked because when I first answered the OP, he stated he wanted the info regarding logging in (when was the last time someone logged in). So if he wants that info, a reboot wouldn't be helpful, because one can log off and log on without rebooting. But maybe I misunderstood his intentions. -- Terry R. ***Reply Note*** Anti-spam measures are included in my email address. Delete NOSPAM from the email address after clicking Reply. |
| |||
| Re: Time since last reboot? Actually, I just need the last reboot time so both methods are helpful, thanks. I've also since learnt that the Windows API functions GetTickCount() gives the number of milliseconds since the last reboot which is even easier... Regards, Alain "Terry R." <F1ComNOSPAM@pobox.com> wrote in message news:%23vrJ6sKxHHA.4800@TK2MSFTNGP05.phx.gbl... > On 7/12/2007 10:15 AM On a whim, Fuzzy Logic pounded out on the keyboard > > I asked because when I first answered the OP, he stated he wanted the info > regarding logging in (when was the last time someone logged in). So if he > wants that info, a reboot wouldn't be helpful, because one can log off and > log on without rebooting. But maybe I misunderstood his intentions. > > -- > Terry R. > > ***Reply Note*** > Anti-spam measures are included in my email address. > Delete NOSPAM from the email address after clicking Reply. |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| System restore,file property time stamps and daylight savings time | Debbie H. | Windows XP | 2 | 06-19-2007 03:20 PM |
| Common File Pops Up Every Time I Reboot | Tim | Windows XP | 3 | 05-13-2007 01:20 PM |
| Ghost CDR drive appears and kills computer every time I reboot. | Reptoid | Windows XP | 2 | 05-09-2007 12:20 AM |
| My Desktop Icons keep rearranging every time I reboot | Jim Hansen | Windows Vista | 17 | 04-06-2007 08:45 PM |
| Daylight Saving Time - hotfix keeps setting my time 1 hour ahead | Paul Grossman | Windows XP | 4 | 03-13-2007 01:01 PM |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |