How To Fix Event ID 7031 or 7034 Error When The User Logs Off Windows 10

Windows 10 Error ID 7031 and 7034 is a recognized Windows bug that occurs on shutdown as soon as the OneDrive sync facility needs to close itself. It should be noted that this event does not affect OneDrive’s operations.

Event ID 7031 and 7034

The Event Viewer utilizes event identifiers to identify and elaborate the special events a Windows machine may come across. For example, if a user cannot be authenticated, the program may produce Event ID. The same is the case with Event Ids of 7031 and 7034.

Reasons for Event ID 7031 and 7034

The Event ID 7031 or 7034 is triggered by OneDrive and by the module OneSyncSvc_Session. This usually occurs during the shutting down of the computer. In the shutdown process, OneDrive is expected to shut down by the operating system within a given window of time. When it fails, it is forcefully closed which in turn causes these event ids.

Event ID 7031 error

Method 1: Disable OneSyncSvc

Many users reported that turning off OneSyncSvc resolved the issue of OneDrive not shutting down properly. This service is related to OneDrive’s sync mechanism and disabling it usually doesn’t affect your sync capabilities. You can always start the process back if this doesn’t work in your case.

  1. Open the Task Manager / Services tab.
  2. Firstly, right-click on the service ‘OneSyncSvc’ and tap on ‘Stop’.
  3. Secondly, open Command Prompt as an administrator. Type the below-mentioned command at the prompt and then tap ‘Enter’.
sc stop "OneSyncSvc"

sc config "OneSyncSvc" start= disabled
Disable OneSyncSvc

Method 2: Modify Services in Registry Editor

Another thing that we can try is changing some registry entries related to OneDrive. Make sure that you follow the steps very carefully; changing other registry keys might break your computer instead of fixing it. You can also backup your registry before proceeding.

  1. Click on the ‘Search bar’ and type ‘Regedit’ in it. Click on the ‘Registry Editor’ app as shown.
Registry Editor Window
  1. Navigate through the below-mentioned path.
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OneSyncSvc
Navigate through the path as highlighted
  1. Lastly, change the value of service to ‘4’ of the file name ‘Start’ and then click ‘OK’ in the window that pops up. This would be heading to deactivate the service. Save changes and exit. Check if the issue is resolved.Note: If this doesn’t work, navigate back to the file path mentioned and perform the actions to all the keys starting with OneSyncSvc. In this example below, there are two other files present that can be changed as well.
Change the value of service

Method 3: Disable WarpJITSvc

Luckily, another excellent way to solve this error is to disable WarpJitSvc service from Registry Editor. Follow these steps to see if this fixes the problem or not:

  1. Click on the ‘Search bar’ and type ‘Regedit’ in it. Click on the ‘Registry Editor’ app to open it.
  2. Navigate through the below-mentioned path.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
  1. Firstly, scroll down a bit to search for ‘WarpJITSvc’ Right-click on it, and tap ‘Properties’.
  2. In the end, in the general tab of WarpJITSvc, expand the option of ‘Startup Type’ and select ‘Disabled’.
Navigate through the path as highlighted

Method 4: Reinstall Video Drivers

Last but not the least solution is to reinstall your video drivers from your PC. Drivers can get outdated over time and they require frequent updating to keep up with the operating system. Hopefully, it will solve your problem at its earliest.

Reinstall Drivers
Kevin Arrows
Kevin is a dynamic and self-motivated information technology professional, with a Thorough knowledge of all facets pertaining to network infrastructure design, implementation and administration. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget.

Expert Tip

How To Fix Event ID 7031 or 7034 Error When The User Logs Off Windows 10

If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Restoro by clicking the Download button below.

Download Now

I'm not interested