Command to get list of errors logged by Windows


You can use PowerShell to generate a list of errors recorded in Windows' event log, which stores all security and application notifications.

Enter this command:

Get-EventLog -LogName System -EntryType Error