ACTIVE MALWARE WINDOWS TESTED: WINDOWS 10

How to fix
Session “Cloud Files Diagnostic Event Listener” failed to start with the following error: 0xC0000022
on Windows

Resolve the "Cloud Files Diagnostic Event Listener" error 0xC0000022 on Windows 10 and 11 quickly and efficiently. Expert-tested solutions await!

How to fix Session “Cloud Files Diagnostic Event Listener” failed to start with the following error: 0xC0000022?
Quick Summary
Error severity
Medium
Est. time
10 minutes
Offer Fortect PC Suite
Start fix →
Ad · we may earn a commission
0 Comments
01

What causes How to fix Session “Cloud Files Diagnostic Event Listener” failed to start with the following error: 0xC0000022?

  • Duplicated application files
  • Installation of OneDrive
  • Installation of Office 365
  • Issues with Files On-Demand in OneDrive
Offer Fortect PC Suite

Repairs Windows system files, removes malware, and restores a clean OS state — without reinstalling.

Ad · we may earn a commission
Get Fortect PC Suite ↗

Hello. Every time I reboot my computer I receive the ""Cloud Files Diagnostic Event Listener" failed to start with the following error: 0xC0000022" message. What should I do?

By using Kernel-EventTracing,[ref en-1] Windows users are able to see any errors that might have occurred. With kernel tracing, information is logged about different kernel events so as to optimize performance and get rid of any bottlenecks. This is all done at a system level so that people can monitor the activity and interactions of processes and threads.

Session "Cloud Files Diagnostic Event Listener" failed to start with the following error: 0xC0000022 is a Kernel-EventTracing error. This message is caused in Windows by duplicated application files. Some people say that the error started appearing after OneDrive or Office 365 installations.

People report seeing the error message every time they reboot their computer which can get annoying. There are a couple of ways this issue can be taken care of. Some people report that they managed to get rid of the error by disabling "Files On-Demand" in OneDrive.

Other users were not so lucky and had to completely reinstall OneDrive. If these fixes we propose do not get rid of the problem, there is a built-in system restore tool. It can revert the Windows system to a previous point before any issues started appearing.

How to fix session cloud files diagnostic event listener failed to start with the following error 0xc0000022
How to fix session cloud files diagnostic event listener failed to start with the following error 0xc0000022

So, in this guide, you will find 3 steps that should help you fix the Session "Cloud Files Diagnostic Event Listener" failed to start with the following error: 0xC0000022 message. However, manual troubleshooting can be a lengthy process. You can use a maintenance tool like [d1]. It can fix most system errors, BSODs,[ref en-2] corrupted files, and registry[ref en-3] issues. Otherwise, follow the step-by-step instructions below.

Solution 1. Disable OneDrive Files On-Demand

  • Make sure you’re signed in to OneDrive on your computer
  • Select the OneDrive cloud icon in the Windows taskbar notification area
  • In the activity center, select More, then go to Settings

Disable onedrive files on demand
Disable onedrive files on demand

  • On the Settings tab, unselect the Save space and download files as you use them box

Solution 2. Reinstall OneDrive

  • Press the Windows key + X to open the Quick Access menu
  • Select Command Prompt (Admin)
  • Type the following command and hit Enter to terminate any process of OneDrive:
    taskkill /f /im OneDrive.exe
  • To uninstall the OneDrive from Windows 10 64-bit, enter the following commands:
    %systemroot%\SysWOW64\OneDriveSetup.exe /uninstall
  • If you’re running the 32-bit version of Windows 10, type this command instead:
    %systemroot%\System32\OneDriveSetup.exe /uninstall

Reinstall onedrive
Reinstall onedrive

  • Now you can install it from Command Prompt
  • Press the Windows key + X again
  • Select Command Prompt (Admin)
  • To install the OneDrive in Windows 10 64-bit, enter the following command:
    %systemroot%\SysWOW64\OneDriveSetup.exe
  • If you’re running the 32-bit version of Windows 10, type this command instead:
    %systemroot%\System32\OneDriveSetup.exe
  • Restart the computer and use OneDrive

Solution 3. Use System Restore

If none of the above methods fixed the error, try System Restore. It is a built-in Windows tool that lets you revert your system back to a previous point. Keep in mind that any programs that you installed after the date you select, will be uninstalled:

  • Type in Create a System Restore Point in Windows search and hit Enter
  • Click on System Restore
  • Select Choose a different restore point (if available) and click Next

Use system restore
Use system restore

  • Mark the Show more restore points checkbox
  • Choose the date before you started experiencing the issue
  • Click Next and reboot the system as required

Bottom line

To fix the 'Session "Cloud Files Diagnostic Event Listener" failed to start' error, you can disable OneDrive Files On-Demand or completely reinstall OneDrive. If these solutions do not resolve the issue, consider using the built-in system restore tool to revert your Windows system to a previous state.

Did this fix work for you?
Gabriel E. Hall

Written & verified by

Malware Removal Expert
Malware removal Ransomware recovery Browser hijackers Spyware analysis Security tools testing

Gabriel E. Hall is a malware removal expert and cybersecurity researcher with over ten years of hands-on experience analysing threats and writing removal guides. She has documented hundreds of malware families — from browser hijackers and adware to ransomware and rootkits — providing step-by-step cleanup instructions tested against real infections. Gabriel's work combines deep technical analysis with clear, actionable language that readers without a security background can follow. Her guides consistently appear among the most-referenced resources for malware removal on Windows systems.

0 Comments

Be the first to comment

Still worried? Run a free check.

Paste any URL or domain — we'll scan it against 4.2M known threats in 10 seconds.

View full scanner → Add to your website →