IT administrator very often check the windows computer uptime, if you are looking for a way to check the uptime of any computer then you are at the right place, here are the simple steps to check the uptime.
There are 3 easy way one can check how long a computer has been up, using the task manager, WMI command and network adaptor, let’s discuss these 3 ways.
Right-click on taskbar and select task manager, please see the screenshot below.
Click on Performance tab in task manager, in the bottom, you will find the uptime of windows machine either it would be a windows 10, 7 or server 2016 or 2012
open the command prompt, click on start menu type in cmd and then press enter or open run command then type cmd, it will bring command prompt, type below wmi command to get the uptime of computer.
wmic path Win32_OperatingSystem get LastBootUpTime
Please see the screenshot below.
- Year: 2020.
- Month: 03.
- Day: 25.
- Hour: 15.
- Minutes: 43.
- Seconds: 56.
- Milliseconds: 552197.
Click on Start and search for powershell , right-click the top result, and click the Run as administrator option.
Type the below command to query the computer uptime and press Enter:
(get-date) - (gcim Win32_OperatingSystem).LastBootUpTime
Thank you for reading this article, if you have any questions please let us know.
Thank you for visiting my site, for any scripts in these articles you are testing please make sure you have tested this script in our lower environment before you run in production.