You can find the time windows was last rebooted on your computer using systeminfo or wmic commands. Both the commands are explained below.
Using Systeminfo:
You can run the below command to find the Windows boot time.
systeminfo | findstr /C:"System Boot Time"
The above command works on Windows 7. If you are using Windows XP, then you need to run a slightly different command.
systeminfo | findstr /C:"System Up Time"
Example:
c:\>systeminfo | findstr /C:"System Boot Time" System Boot Time: 1/29/2012, 4:54:04 PM
Using WMIC:
We can find the boot time using wmic os command.
c:\>wmic os get lastBootUpTime LastBootUpTime 20120129165404.109999+330 c:\>
WMIC command shows the time up to milliseconds.
You can also use the NET STATISTICS SERVER command. Look for the line “Statistics since …..” after running it.
Been using Windows since 3.11. I wish I knew this years ago!
‘net statistics server’ does not match what systeminfo shows.
If the service “Server” is running. On all of my client computers Server is disabled.
Works too..
Thanks,
Nice information.
You have saved me lot of time.
Thanks
Great tip.
I will use this on a regular basis and will also save myself a lot of time.
If you shutdown and startup this time never changes
The systeminfo Boot Time seems to be simply based on the timestamp for the c:\pagefile.sys.
————
C:\>date | time
The current time is: 8:41:07,32
….
The current date is: do 10-03-2022
…
C:\>dir /ah /tw c:\pagefile.sys
…
24-02-2022 08:23 5.100.273.664 pagefile.sys
…
C:\>systeminfo | find /i “Boot Time”
System Boot Time: 24-2-2022, 08:23:11
————–
However that file’s timestamp will only be updated when the system is rebooted, not when it is shutdown and then booted up from scratch.