Command to View Last Reboot:
Get-CimInstance -ClassName Win32_OperatingSystem | Select CSName, LastBootUpTime
Alternatively, you can use:
(Get-CimInstance -ClassName Win32_OperatingSystem).LastBootUpTime
Command to View Last Reboot:
Get-CimInstance -ClassName Win32_OperatingSystem | Select CSName, LastBootUpTime
Alternatively, you can use:
(Get-CimInstance -ClassName Win32_OperatingSystem).LastBootUpTime
Learn how to use PowerShell to detect pending reboots in Windows by checking Windows Updates, Component-Based Servicing (CBS), Pending File Rename Operations, and MSI installer flags.
0 Comments