Skip to content

Instantly share code, notes, and snippets.

@uuklanger
Created November 7, 2018 19:16
Show Gist options
  • Save uuklanger/2e11f401ef80c31603dc8f6e97cc0fa9 to your computer and use it in GitHub Desktop.
Save uuklanger/2e11f401ef80c31603dc8f6e97cc0fa9 to your computer and use it in GitHub Desktop.
Query the Windows 10 Event Log for any instance id of 40960
Get-EventLog -LogName "System" -Newest 100 -InstanceId 40960
write-host "Press any key to continue..."
[void][System.Console]::ReadKey($true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment