> ## Content Index
> Fetch the complete content index at: https://www.filipkonopik.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# PowerShell: Check Last Reboot Time
- URL: https://www.filipkonopik.com/powershell-check-last-reboot-time/
- Published: 2026-07-21T07:19:17.000Z
- Updated: 2026-08-06T05:30:03.000Z
- Author: Filip Konopík
- Tags: Maintenance

Need to know when a machine was last rebooted - for uptime tracking, confirming a patch reboot happened, or troubleshooting stability issues? This one-liner pulls it straight from the system.

Prerequisites:

- Privileges: None
- Module: Built-in, no import needed

Quick Command:

```PowerShell
Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object LastBootUpTime
```

Example Output:

```PowerShell
LastBootUpTime
--------------
14.07.2026 23:25:15
```

📦

****Want all of them at once?**  
Get every free one-liner from this blog in a single downloadable bundle organized by category, each with full comment-based help. No more copy-pasting one at a time.

[Get the Complete Bundle for $39](https://gum.co/u/oczvkqdc?ref=filipkonopik.com)

How It Works:

- Get-CimInstance -ClassName Win32\_OperatingSystem queries the operating system class through CIM/WMI, which holds core system details like version, build number, and boot time.
- LastBootUpTime returns the date and time the system was last started - already converted into a readable local date/time format by CIM.
- Select-Object trims the output down to just this one property, since Win32\_OperatingSystem also returns a lot more data (like Caption, Version, or BuildNumber) that isn't needed for a quick boot time check.