How to Check the Last Boot Time in Windows 11 Command Line
Finding the last time your PC booted is useful for troubleshooting and understanding uptime, since a recent boot can affect behavior. Windows 11 reports the last boot time directly from the command line in several YYGACOR Resmi ways.
The Command
systeminfo | find "System Boot Time"
What It Does
This runs `systeminfo` and filters its output to the single line showing the System Boot Time, which is when Windows last started. Piping to `find` extracts just that line from the extensive report, giving you a quick answer without reading through all the system details that `systeminfo` produces.
When You’d Use This
This is helpful when troubleshooting, since knowing when the system last started tells you whether a recent restart took effect or whether the machine has been running a long time. Many issues clear after a genuine restart, so confirming the last boot time helps you judge whether the system truly rebooted or was only shut down and powered back on.
Useful Variations
In PowerShell, `(Get-CimInstance Win32_OperatingSystem).LastBootUpTime` returns the boot time directly as a date. To calculate uptime instead, subtract that from the current time. The `net statistics workstation` command also shows a “Statistics since” line reflecting roughly when the current session began.
If It Doesn’t Work
If the boot time seems older than expected after a shutdown and power-on, fast startup is likely the reason, since it does not fully reset the boot time the way a restart does. For a reliable reset, perform a full restart. If the `find` filter returns nothing, the exact wording of the line may differ, so run `systeminfo` alone and look for the boot time entry.
Good to Know
If your PC uses fast startup, a shutdown followed by powering on may not update the boot time the way a full restart does, so the reported time can be older than expected after a shutdown cycle. A proper restart updates the boot time reliably, which is one reason restarting differs from shutting down and starting again.
Putting It Together
Once you have run it once or twice, this becomes second nature. As part of gathering facts about your hardware and Windows setup, this command saves you from digging through settings screens. Together with the others in this area, it lets you document a system’s full configuration or answer a specific specification question in seconds from the terminal. Like anything in the terminal, the real value comes from trying it on your own system and adapting the variations above to what you actually need, so it is worth experimenting with in a safe, low-stakes situation before relying on it in a script or during troubleshooting. Keeping a note of the commands you find most useful, along with the variations that fit your workflow, turns scattered one-off tricks into a personal reference you can draw on whenever a similar task comes up again.