I use the PsInfo utility from Microsoft's Sysinternals package, which will give you output like this:
PsInfo v1.77 - Local and remote system information viewer
Copyright (C) 2001-2009 Mark Russinovich
Sysinternals - www.sysinternals.com
System information for \\JEFF-DELL:
Uptime: 0 days 0 hours 33 minutes 27 seconds
Kernel version: Microsoft Windows XP, Multiprocessor Free
Product type: Professional
Product version: 5.1
Service pack: 3
Kernel build number: 2600
Registered organization:
Registered owner:
IE version: 8.0000
System root: C:\WINDOWS
Processors: 2
Processor speed: 2.3 GHz
Processor type: Intel(R) Core(TM)2 Duo CPU E6550 @
Physical memory: 3316 MB
Video driver: Live Mesh Remote Desktop Mirror Driver
If you are using Server 2008, you can see the system uptime in hours on the "Task Manager" - "Performance" tab.
As far as I know, the "net statistics ..." way is the only true way on Windows 2003.
Start -> Run ->
cmd.exe
Or for more recent OS versions (see comment):
Filter the System Event Log for Event ID 6009.
open up the powershell command and run this to see all your history ... and no UI necessary :-)
I use the PsInfo utility from Microsoft's Sysinternals package, which will give you output like this:
If you are using Server 2008, you can see the system uptime in hours on the "Task Manager" - "Performance" tab. As far as I know, the "net statistics ..." way is the only true way on Windows 2003.
Using a wmi client.
Note: -360 = GMT-6
Last Time the System Booted
My personal favorite is to use WMI and Win32_OperatingSystem properties/methods. Here it is as an easy copy/paste one liner:
Same thing, but easier for manual typing:
Both options provide output like:
Length of System Up Time
If you want to find out how long the system has been online you can do this (this is also an alternate code style):
Which gives output like:
Using Powershell
You can easily open your task manager in performance tab under System find your "UpTime"!!!
Following gives history of shutdown dates.
Refer How to get the list of shutdown event with date?
Filtering the
System
events with the event id1074
inEventvwr.exe
helped me