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.
Uptime.exe here should work fine for Windows XP as well:http://www.microsoft.com/ntserver/nts/downloads/management/uptime/default.asp
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 athttp://www.sysinternals.com/
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