|
||
| KB | 0000552 | |
| Dated | 09/01/12 | |
| Revision | 0.01 | |
Windows - Find your "Uptime" |
||
Problem |
||
There are lots of reasons you might want to know your PC/Servers uptime, to make sure a client has rebooted a server (like you asked them to), or to see if a server has had a BSOD and rebooted overnight, etc. This article will provide info on, |
||
Solution |
||
Getting the local machines uptimeOption 1 - Check Uptime with Task Manager1. Starting with Windows Vista/2008 you can get your uptime from the Task Manager's "Performance" tab. To launch Task Manger
Option 2 - Use Systeminfo to find Uptime1. From command line execute the "Systeminfo" command, this lists quite a lot of information so you will need to scroll back up to the top, from here you can locate the machines "System Boot Time". 2. You can make the results shorter by "Piping" the results with the following command;
Option 3 -Use Net Statistics to find Uptime1. You can get uptime information by either querying the workstation service, or the server service, issue either, the following command;
Or the following command;
Option 4 - Use Uptime.exe to find Uptime1. Download uptime.exe and put a copy in your "System32" Directory, you can then use the uptime command. Option 5 - Use WMI (Windows Management Instrumentation) to find Uptime1. Issue the following command;
As you can see the result is not pretty, it is presented in UTC format. 20120109081112.925800+000 = Year 2010, Month 01, Day 09, Time 08:11:12 Option 6 - Check the Event Log to find Uptime1. Launch the Event Viewer (eventvr.msc) > Windows Logs > System Log > Find > Search for Event 6015, (Note: This event gets logged each time the server boots, as the event log service starts). Note: Starting with Windows Server 2003, Event 6013 is periodically logged this shows the machines uptime at that point. Option 7 - Use Powershell to find Uptime1. Windows 7 and Server 2008 R2 come with Powershell installed by default, Download Powershell for WindowsWindows XP go here. Windows Vista x32 go here, Windows Vista x64 go here, Windows Server 2008 x32 go here, Windows Server 2008 x64 go here, From the Powershell console execute the following command;
Or if that's to long the following will also work;
Getting a Remote Machines UptimeOption 1 - Use Uptime.exe to get a Remote Machines Uptime1. Already mentioned above download uptime.exe and extract it to your system32 directory. Then to get a remote machines uptime, use the following command;
Option 2 - Use Powershell to get a Remote Machines Uptime1. To do this your best best is to create a "function", then call that function in a command. Open the Powershell console and create a function called Remote-Uptime
Note: You will need to press {Enter} to get back to the command prompt again. Then call the function like so;
|
||
If this post helped you, PLEASE take the time to +1 it.
Please be aware, all information is provided free, but it does cost me to have this site hosted, if I've helped you in any way, or saved you some time/cost please take time to make a donation. If you have anything to add to an article, or have an article you would like us to publish please feel free to contact PeteNetLive. (Please be aware I get a LOT of email, I cannot assist and fix everyone's problems, please do not be offended if you do not get a response). |
||
References - Credits - Or External Links |
||
| NA | ||






















