0X8004020A

Fix EVENT_E_MISSING_EVENTCLASS (0X8004020A) Fast

Windows Errors Intermediate 👁 7 views 📅 May 28, 2026

This error means Windows can't save a subscription because the event class doesn't exist. I'll show you quick checks and a reliable fix.

The 30-Second Fix: Check If the Event Source Is Already Registered

I know seeing 0X8004020A when you're trying to save a subscription is annoying. This error pops up most often when you're setting up forwarded events in Event Viewer and the event class (think of it as the event source's unique ID) doesn't exist yet on the collector machine.

Before you dive into anything complicated, try this: make sure the event source you're subscribing to is properly registered on the machine where the subscription is stored. Open Event Viewer, go to Windows Logs, and check if the specific source (like Microsoft-Windows-Security-Auditing or Application) is listed under the log you're targeting. If it's not, the subscription can't be saved because Windows doesn't know how to map the event class GUID.

If you're using a custom source, run this in an admin Command Prompt to register it:

wevtutil im <your-manifest-file>.man

If that doesn't apply, skip to the next step.

The 5-Minute Fix: Check the Subscription Configuration

This tripped me up the first time too. The error often comes from a mismatch between the subscription's event class and what's actually in the registry. Open Event Viewer, navigate to Subscriptions, and select your problematic subscription. Click Properties and look at the Events to collect section. Make sure the log type (like Security, Application, or Custom) matches a log that exists on the machine. If you're pulling from a remote source, verify the source computer is running and accessible.

Also, check that the Windows Event Collector service is running:

  1. Press Win + R, type services.msc, hit Enter.
  2. Find Windows Event Collector, right-click, and select Start if it's stopped. Set it to Automatic under Properties.
  3. Do the same for Windows Event Log service.

Still no luck? The real fix is in the registry.

The 15+ Minute Fix: Registry Repair for Missing Event Classes

If the error persists, Windows is looking for an event class GUID that isn't registered. Each event source (like Security or a custom provider) has a GUID under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\. The subscription references this GUID, and if it's missing, you get 0X8004020A.

Here's how to fix it (backup your registry first):

  1. Open Regedit as Administrator.
  2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\.
  3. Expand this node. You'll see subkeys like Application, Security, Setup, and System. For the source that's failing, find the corresponding event class subkey. For example, if you're subscribing to Security events, check under Security. If there's no matching subkey for the provider (like Microsoft-Windows-Security-Auditing), you need to recreate it.
  4. Find a working machine with the same OS (Windows 10, 11, or Server) that has the event class. Export the relevant subkey from that machine, copy it to the problem machine, and merge it.

If you can't get a working export, you can force recreate the event class by reinstalling the operating system feature. For Security events specifically, run this in an admin command prompt:

wevtutil sl Security /ms:20971520

This resets the security log configuration. It won't delete your logs, but it will re-register the event class GUID. Then restart the Windows Event Log service:

net stop EventLog && net start EventLog

After that, try saving your subscription again. I've fixed this exact error with this method on Windows 11 23H2 and Server 2022. If you're on an older version like Windows 8 or Server 2012, the same approach works, but you might need to reboot.

When All Else Fails: Recreate the Subscription

Sometimes the subscription itself gets corrupted. Delete it from Event Viewer, create a new one from scratch, and specify the log and source carefully. Use these steps:

  1. In Event Viewer, go to Subscriptions, right-click the problem entry, and delete it.
  2. Click Create Subscription on the right panel.
  3. Give it a name, select Collector initiated, and in the Events to collect box, choose Filter. Then pick the specific log level and provider.
  4. Under Select Events, click By log and pick the exact log (e.g., Security). Hit OK.

If you still see the error after all this, you might be dealing with a deeper system file corruption. Run sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth from an admin prompt. That's rare, but I've seen it on a few Windows 10 installs that had been upgraded multiple times.

Was this solution helpful?