How to find out when the XPSP2 was started

mT

Distinguished
Apr 6, 2004
23
0
18,510
Archived from groups: microsoft.public.windowsxp.security_admin (More info?)

Ho to find out when was the last reboot of the XPsp2? Or say how long the XP
has been up.

Thanks in adv.
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.security_admin (More info?)

mt wrote:
> Ho to find out when was the last reboot of the XPsp2? Or say how long
> the XP has been up.
>
> Thanks in adv.

Look in your system event log - you'll see events with the source being
"event log" and the event ID 6006 (shutdown) and 6009 (startup)
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.security_admin (More info?)

mt wrote:

> Ho to find out when was the last reboot of the XPsp2?
> Or say how long the XP has been up.
Hi

A)
Uptime.exe here should work fine for Windows XP as well:

http://www.microsoft.com/ntserver/nts/downloads/management/uptime/default.asp


B)
Or you can e.g. use PsInfo.exe for this:

Local computer: Psinfo.exe uptime
Remote computer: Psinfo.exe uptime \\somecomputer

PSInfo.exe is in the in the free PsTools suite found at
http://www.sysinternals.com/


C)

Or you can use VBScript/WMI for this:

http://groups.google.com.au/groups?selm=umV1L6kcEHA.2520%40TK2MSFTNGP12.phx.gbl



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx