Get the computer's last wake time

.net, windows

Solution

Try this command - use Process to fire it off - you'll need to parse the result

cmd /k wevtutil qe System /q:"*[System[Provider[@Name='Microsoft-Windows-Power-Troubleshooter']]]" /rd:true /c:1 /f:text

Lifted from here if you want more info...

Problem

I know I can get the time since the last boot using `Environment.TickCount` But is it possible to get the last time a compute woke up from hibernation or sleep? (Without using WMI please)

Original source

Related problems