Created
July 27, 2022 18:31
-
-
Save karoltheguy/c7a1e284fd526978f9f7a321b6b09765 to your computer and use it in GitHub Desktop.
Find the last shutdown reason through event logs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-EventLog -LogName System |? {$_.EventID -in (6005,6006,6008,6009,1074,1076)} | ft TimeGenerated,EventId,Message -AutoSize –wrap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment