Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Windows Tutorials»How to Check Computer Uptime in Windows

    How to Check Computer Uptime in Windows

    By RahulJune 2, 20223 Mins Read

    Computer Uptime refers to how long a system has been up and running without any shutdown or restart. The computer uptime helps us to find the last reboot of any system. This can be helpful in many ways like troubleshooting or scripting etc. In this tutorial, we will discuss three ways to check the uptime of any Windows machine or server.

    Advertisement

    1. How to Check Windows Uptime with Task Manager

    A task manager is a computer program used for checking the process and services running and their details. You can also find details about the resource utilization like Memory and CPU uses at runtime. This is also a quick and preferred way for Windows users to find computer uptime.

    1. Log in to your Windows system.
    2. Right click on task bar and click on Task Manager to launch.
    3. Click “More details”, If the task manager opened in compact view.
    4. Go to Performance tab
    5. In CPU section, you will find computer uptime like below screenshot

    Check Computer Uptime in Task Manager

    As per the above screenshot, this computer is up from 33 Days and 33 minutes.

    2. Check Computer Uptime with Command Prompt

    You can also find the Windows uptime with the command-line options. Here we will discuss the two commands that provide the uptime details.

    A. Using WMIC Command:

    WMIC (Windows Management Interface Command), is a simple command-line utility that provides information about the running system. With the help of this command, we can find the last boot-up time.

    wmic path Win32_OperatingSystem get LastBootUpTime
    

    Check Computer Uptime in Command Prompt

    B. Using systeminfo Command:

    The systeminfo command displays a list of details about your operating system, computer software, and hardware components. You can also check for the value “System Boot Time” to get the computer uptime.

    systeminfo | find "System Boot Time"
    

    Check Windows Uptime in Command Prompt

    3. How to Check Windows Uptime with PowerShell

    Launch a Powershell window and type the below command to find the last reboot time of the current system.

    Get-CimInstance -ClassName Win32_OperatingSystem | Select LastBootUpTime
    

    Check Computer Uptime in PowerShell

    You can also view the computer uptime in the number of days, hours, and minutes formats. Execute the below command and check the results.

    (get-date) - (gcim Win32_OperatingSystem).LastBootUpTime
    

    Check Windows Uptime in PowerShell

    You can also store the output of the above commands to a variable. Which can be helpful for scripting purposes. The below command will store all values in the “uptime” variable.

    $uptime = (get-date) - (gcim Win32_OperatingSystem).LastBootUpTime
    

    Next, extract the specific values only and print them on the screen.

    Write-Output "The Windows Uptime is >> $($uptime.days) Days, $($uptime.Hours) Hours and $($uptime.Minutes) Minutes"
    
    Output:
    The Windows Uptime is >> 35 Days, 12 Hours and 46 Minutes

    Conclusion

    In this tutorial, you have learned various methods for checking Windows uptime. This guide covers the 3 methods like Task manager, command prompt, and PowerShell to get computer uptime.

    cmd PowerShell uptime windows
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    Uptime Command in Linux

    A Quick Reference Guide to Uptime Command in Linux

    4 Methods to Check .NET Framework Version on Windows

    Generate the SSH Key Pair on Windows {5 Steps}

    Add A Comment

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • How to List Manually Installed Packages in Ubuntu & Debian
    • 10 Bash Tricks Every Developer Should Know
    • How to Validate Email Address in JavaScript
    • Firewalld: Common Firewall Rules and Commands
    • 12 Apk Commands in Alpine Linux Package Management
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.