Network administrators use Windows last boot time as a metric to troubleshoot day-to-day issues that may arise in the system. Let’s start by looking at a couple of different methods to identify the Windows last boot time.

Power Shell

There are some ways to utilize Power Shell to check your Windows machine’s uptime or last boot time.

Get-CimInstance cmdlet

The Get-CimInstance cmdlet in PowerShell can be used to obtain the system’s most recent boot time. Get-CimInstance cmdlet (instances of WMI classes) gets system information from the win32 operating system class name and provides it to the second instruction via the pipeline operator. It obtains a class’s CIM (Common Information Model ) instances from a CIM server. The second command chooses the CSName and lastBootupTime properties from CIM and displays the windows machine’s last boot time as a result. First, Open the PowerShell and run it as an administrator. Just type the following command in the PowerShell to view the last boot time. Sample Output: The below gcim command displays the uptime of a windows system in a list manner with days, hours, and minutes. Instead of the last boot time, it just shows the uptime of a system since the last boot. Here, gcim stands for Get – CimInstance. Sample Output: If you’re using PowerShell 6 or above, you can get the Windows uptime and last boot time easily with the following command: To see all the properties and methods of Get-CimInstance, use the following command. This command provides the info of all the Get-CimInstance methods and their properties.

Get-WmiObject

You can easily query the last boot time for your PC using the PowerShell Get-WmiObject command, as shown below. Sample Output: You’ll see an output that appears awkward at first, but it’s not difficult to read and understand. You can easily figure out the last boot time of your windows machine. The information below can be used to break down the LastBootUpTime 20220220132640.500000+330.

Year: 2022.Month: 02.Day: 20.Hour: 13.Minutes: 26.Seconds: 40.Milliseconds: 500000.GMT: +330 (5 and half hours ahead of GMT).

Or you can also use another Get-WmiObject command to query the last boot time of the system. The lastbootuptime will be converted into big integer format, which will be finally displayed in a readable format. Sample Output:

Network statistics workstation

The net statistics command displays system statistics such as bytes of data received and total uptime since the computer’s last boot. You can also use the following shortcut: Sample Output:

System Info

The systeminfo utility command can be used to obtain the computer’s most recent boot time by loading and analyzing processor, Hotfix, and Hyper-V information. This command displays the Hostname, OS version, build-type, configuration, bios version, boot time, software installation date, and every detail. From all this data, if you want to see only the specific required data, Then you need to pass the Select -string additional utility to the systeminfo command. Just type the following command in the PowerShell terminal to see the last boot time. Here, the Select-String cmdlet searches input strings and files for text patterns using regular expression matching. The above command fetches the local computer’s most recent reboot time and prints the OS version of a system and windows system last Boot Time to the terminal, as shown below. Sample Output:

Command prompt

You can also use the command line to check the uptime or last boot time of your Windows system with some commands and utilities like net stats, wmic, and systeminfo. 

System Info

The command systeminfo displays generic information about the Windows operating system and its configuration. It displays the last time Windows was booted. If you want uptime, you need to manually determine how much time has passed since the last boot. Open a command prompt and type the following command. Sample Output:

WMIC

 WMIC ( Windows Management Instrumentation Command-line ) command will provide you with a string representation of the computer’s last boot time. The result is formatted as a four-digit year with two digits for month, day, hour, minute, and second. Open a command prompt and type the following command. Sample Output: This output can be read as 2022, month 2, day 20, hour 13 (or 1:00 PM), minute 26, and so on.

Net Stats

The net statistics command displays system statistics such as bytes of data received, bytes of data transferred, the number of connections made, and total uptime since the last boot of the computer. To see the services running in the windows machine, use the below command. This command just displays the available running services in the system. We can get statistics for either the server or workstation using the context NET STATISTICS with the following command. Here, I provided the workstation in command to see statistics. Sample Output: This command can be used from within a batch file, and the output can be filtered using the “find” command. For example, if you want to find only the last boot time of the system, use the following command. Sample Output: And if you want to find the Windows Server uptime, the command will become the net statistics server.

Task Manager

This is the simplest way to check your device uptime. Instead of showing the last boot time, it shows the uptime of the system since the last boot.

To open Task Manager, simply use the Ctrl + Shift + Esc keyboard shortcut. Navigate to the Performance tab. The system uptime will be displayed near the bottom of the window.

This means the system was rebooted before 8 days, 8 hours, and 29 minutes.

Conclusion

These are some of the methods for quickly obtaining the windows system’s most recent boot time or uptime. Every command has its own set of benefits. You can choose the way that best matches your needs. I hope you found this article very useful in learning how to get the last boot time of a windows system in different ways. You may also be interested in learning about the top tools to monitor windows servers.

3 Easy Ways to Find Windows Last Boot Time - 863 Easy Ways to Find Windows Last Boot Time - 193 Easy Ways to Find Windows Last Boot Time - 983 Easy Ways to Find Windows Last Boot Time - 693 Easy Ways to Find Windows Last Boot Time - 523 Easy Ways to Find Windows Last Boot Time - 703 Easy Ways to Find Windows Last Boot Time - 433 Easy Ways to Find Windows Last Boot Time - 533 Easy Ways to Find Windows Last Boot Time - 193 Easy Ways to Find Windows Last Boot Time - 93 Easy Ways to Find Windows Last Boot Time - 933 Easy Ways to Find Windows Last Boot Time - 443 Easy Ways to Find Windows Last Boot Time - 753 Easy Ways to Find Windows Last Boot Time - 573 Easy Ways to Find Windows Last Boot Time - 23 Easy Ways to Find Windows Last Boot Time - 273 Easy Ways to Find Windows Last Boot Time - 383 Easy Ways to Find Windows Last Boot Time - 653 Easy Ways to Find Windows Last Boot Time - 953 Easy Ways to Find Windows Last Boot Time - 733 Easy Ways to Find Windows Last Boot Time - 203 Easy Ways to Find Windows Last Boot Time - 873 Easy Ways to Find Windows Last Boot Time - 703 Easy Ways to Find Windows Last Boot Time - 97