powershell check event log for errors code example

Example: gwt- all event source ps

PS> Get-WmiObject -Class Win32_NTEventLOgFile | Select-Object FileName, Sources


FileName               Sources                                                                             
--------               -------                                                                             
Application            {Application, .NET Runtime, .NET Runtime Optimization Service, Application Error...}
Dell                   {Dell, DigitalDelivery, Update}                                                     
HardwareEvents         {HardwareEvents}                                                                    
Internet Explorer      {Internet Explorer}                                                                 
isaAgentLog            {isaAgentLog, isaAgent}                                                             
Key Management Service {Key Management Service, KmsRequests}                                               
OAlerts                {OAlerts, Microsoft Office 16 Alerts}                                               
PowerShellPrivateLog   {PowerShellPrivateLog, Debug, Logon, Misc...}                                       
PreEmptive             {PreEmptive, PreEmptiveAnalytics}                                                   
Security               {Security, DS, LSA, Microsoft-Windows-Eventlog...}                                  
System                 {System, 3ware, ACPI, ADP80XX...}                                                   
TechSmith              {TechSmith, TechSmith Uploader Service}                                             
Windows PowerShell     {Windows PowerShell, PowerShell}

Tags:

Misc Example