I have found a way to get the boot time like "systeminfo | find /i "boot time""
But in order to run this command the user must be logged on.
Is there a way to get the previous boot time?
Previous boot time
Moderator: DosItHelp
Re: Previous boot time
It's not clear what you mean by "previous". If it's the most recent reboot you can still use systeminfo even before the first login (lookup the /U /P switches). If it's about some prior reboot, then you could probably use WMI to scan the event log. In either case, a batch file may not be the best/easiest way to do it, though.
Liviu
Liviu