I want to know when the Windows PC (Windows 10 or Windows Server 2019) was restarted. Today I tried it on my freshly booted machine (10 minutes ago) and I got the 17th August 2021 at 11:51:26 PM. So it seems the PC was hibernating, while being completely turned off (without power!).
How do I get the last time the PC was restarted? I tried with this
Command line:
systeminfo /s localhost
PowerShell:
Get-CimInstance -ClassName win32_operatingsystem | select csname, lastbootuptime
but they are giving me the wrong information.