<分区>
我想查看操作系统的启动时间。即最近一个月,Windows 启动的次数。这有可能查出来吗?
<分区>
我想查看操作系统的启动时间。即最近一个月,Windows 启动的次数。这有可能查出来吗?
最佳答案
PowerShell和系统事件日志是为这项任务完美设计的。注意 id 为 12 的事件是 System Start Up 事件,而 id 13 表示 System Shutdown。以下 PowerShell 脚本将提供您的系统在一个月内的启动和关闭时间。
echo "Start time:"
Get-EventLog System -After 12/21/2011 | ? {$_.EventId -eq 12} | % {$_.TimeGenerated}
echo "Shutdown time:"
Get-EventLog System -After 12/21/2011 | ? {$_.EventId -eq 13} | % {$_.TimeGenerated}
将 12/21/2011
替换为您想要的任何日期。单击“开始”菜单,键入“powershell”,然后回车将启动 Windows PowerShell。
关于windows - Windows 7 启动/引导的时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8959193/