2019/11/05 #再起動した時刻をイベントログで調べる
皆様おはようございます、
#猫でもできるPowerShell(備忘録)
#再起動した時刻をイベントログで調べる
PS>
Get-EventLog System -Newest 1000 |
?{$_.TimeGenerated -GT "2019/11/05 11:20:55" -and
$_.TimeGenerated -LT "2019/11/05 11:30:55"} |
FT -a
Index Time EntryType Source InstanceID Message
----- ---- --------- ------ ---------- -------
350757 11 05 11:30 Information Service Control Manager 1073748860 Device Setup Manager サービスは 実行中 状態に移行しました。
350756 11 05 11:30 Information Service Control Manager 1073748860 Application Information サービスは 実行中 状態に移行しました。
350754 11 05 11:30 Information Service Control Manager 1073748860 Portable Device Enumerator Service サービスは 実行中 状態に移行しました。
350753 11 05 11:29 Information Microsoft-Windows-Winlogon 7001 カスタマー エクスペリエンス向上プログラムのユーザー ログオン通知
350752 11 05 11:29 Information Service Control Manager 1073748860 Smart Card Device Enumeration Service サービスは 実行中 状態に移行しました。
:
:
以下多数
もろもろの御事情でサーバ再起動したは良いが、後で作業履歴が判らず
お困りの際に(私か・・)
ちなみに ?{$_.EventID -eq 6013} でフィルタするとシステムの稼働時間が
表示されるので、かなり正確な時刻まで絞り込めます
ではまた;