获取计算机的最后唤醒时间

ste*_*rnr 3 .net windows

我知道自上次启动以来我可以得到时间Environment.TickCount
但是有可能最后一次计算从休眠或睡眠状态中醒来吗?

(请不要使用WMI)

Pau*_*ulB 7

尝试此命令 - 使用Process将其关闭 - 您需要解析结果

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

如果您想了解更多信息,可以从这里取消......