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!
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
Repairs Windows system files, removes malware, and restores a clean OS state — without reinstalling.
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.

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

- 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

- 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

- 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.




Report an issue
What's wrong with this guide? We review every report and update or remove content.
Report received — thank you. We'll review and fix it.
You need a free account to submit a report.
Be the first to comment