When a program stops, a service does not start or the server behaves strangely, Windows has usually written down why. These records are the event logs. This guide shows how to list the errors of the last days, how to tell real problems from the noise that every server on the Internet has, and how to save the entries for a support ticket.

The examples use Windows Server 2025. Run the commands in PowerShell as Administrator: right-click the Start button and choose Terminal (Admin).


1. How Many Errors Are There

Most entries about Windows itself are in the log System. Count its errors and warnings of the last 7 days:

Get-WinEvent -FilterHashtable @{LogName="System"; Level=1,2,3; StartTime=(Get-Date).AddDays(-7)} | Group-Object LevelDisplayName | Select-Object Count, Name
Count Name
----- ----
  140 Error
   27 Warning
    1 Critical

The levels are 1 Critical, 2 Error and 3 Warning. A healthy server has such entries too, so the number alone says little. The next steps show what they are.

2. Who Reports the Most

Get-WinEvent -FilterHashtable @{LogName="System"; Level=1,2,3; StartTime=(Get-Date).AddDays(-7)} | Group-Object ProviderName | Sort-Object Count -Descending | Select-Object -First 5 Count, Name
Count Name
----- ----
   78 Schannel
   34 Microsoft-Windows-TPM-WMI
   17 Microsoft-Windows-DistributedCOM
   16 e1i68x64
   10 Service Control Manager

Name is the part of Windows that wrote the entries. One name with a large number is where you start reading.

3. Read the Newest Errors

Get-WinEvent -FilterHashtable @{LogName="System"; Level=1,2} -MaxEvents 5 | Format-List TimeCreated, Id, ProviderName, Message
TimeCreated  : 12/2/2026 12:08:25 AM
Id           : 36874
ProviderName : Schannel
Message      : An TLS 1.3 connection request was received from a remote client application, but none of the cipher
               suites supported by the client application are supported by the server. The TLS connection request has
               failed.
                The SSPI client process is svchost[TermService] (PID: 1468).

This entry is typical for a server whose Remote Desktop is reachable from the Internet: a stranger's program tried to connect with outdated settings and was turned away. TermService is Remote Desktop. Such entries are noise, not a fault of your server. To get fewer of them, allow Remote Desktop only from your own addresses: Allow Remote Desktop Only From Your IP Addresses.

For one source only, add its name to the filter, for example ProviderName="Service Control Manager".

4. Did a Service Stop?

Windows notes every service that ended unexpectedly or could not start:

Get-WinEvent -FilterHashtable @{LogName="System"; ProviderName="Service Control Manager"; Level=2} -MaxEvents 5 | Format-List TimeCreated, Id, Message
TimeCreated : 12/1/2026 6:57:26 PM
Id          : 7031
Message     : The Plex Update Service service terminated unexpectedly.  It has done this 1 time(s).  The following
              corrective action will be taken in 10000 milliseconds: Restart the service.

The message names the service, says how often it happened and what Windows does about it. Here Windows restarts the service by itself after 10 seconds.

5. Did a Program Crash?

Crashes of programs are in the log Application:

Get-WinEvent -FilterHashtable @{LogName="Application"; ProviderName="Application Error"} -MaxEvents 3 | Format-List TimeCreated, Message
TimeCreated : 12/1/2026 5:02:57 PM
Message     : Faulting application name: explorer.exe, version: 10.0.26100.32230, time stamp: 0x30348aaf
              Faulting module name: Windows.UI.Core.TextInput.dll, version: 10.0.26100.32230, time stamp: 0x054758af
              Exception code: 0x00000675

The first line names the program that crashed, the second the part in which it happened. If it is your own program and it crashes again and again, send these lines to its maker.

6. The Same in Event Viewer

Right-click the Start button and choose Event Viewer. Open Windows Logs > System and choose Filter Current Log... on the right. Tick Critical and Error, set Logged to the last 7 days if you like, and choose OK. Click an entry to read its message below the list. Application in the same folder holds the entries of programs.

7. Save the Entries for Support

This writes the errors of the last 7 days into a file on your desktop that you can attach to a ticket:

Get-WinEvent -FilterHashtable @{LogName="System"; Level=1,2; StartTime=(Get-Date).AddDays(-7)} | Select-Object TimeCreated, Id, LevelDisplayName, ProviderName, Message | Export-Csv "$env:USERPROFILE\Desktop\errors.csv" -NoTypeInformation

Good to Know

Was this answer helpful? 0 Users Found This Useful (0 Votes)