Over these years, at least since the Windows 7 era, we’ve seen several cases where the system logs you off when clicking on the Shutdown or Hibernate option in the Start menu. The problem may be seen in Windows 8 or Windows 10 computers as well. Some users have indicated that the problem occurred after installing Windows 10 v1903.
What causes Windows to log off the user instead when shutdown or hibernate option is used?
During hibernation, Windows reads the contents in the memory and dumps it into a file named hiberfil.sys on the system drive’s root. The crash dump feature uses the same technology to dump the memory contents to a file (.dmp) in your hard disk in the aftermath of a system crash. Both hibernate and crash dump features use a special filter driver named
dumpfve.sys to do the task of dumping the memory to file.
dumpfve.sys is mentioned in the following registry key, in a REG_MULTI_SZ value named
The multi-string registry value allows third-party providers to add the crash dump filter drivers — e.g., Truecrypt.sys from TrueCrypt, MfeEpeOpal.sys from McAfee Endpoint Encryption, or Daemon Tools filter driver, etc. Most disk encryption products typically also want to encrypt hibernation & crash dump files and add their dump filters in the above registry key.
The dump filter drivers mentioned in the registry key are loaded when crash dump or hibernation is initialized. If Windows is unable to load the filter drivers during the hibernate process, it generates an event log entry with the Event ID 45. The event log entry looks like the following:
Log Name: System Source: volmgr Event ID: 45 Task Category: None Level: Error Keywords: Classic Description: The system could not successfully load the crash dump driver.
Additionally, when you go to the Details tab in this event and then select friendly view, you may notice the following:
Binary data: In Words 0000: 00000000 00000001 00000000 C004002D 0010: 00002005 C0000034 00000000 00000000 0020: 00000000 00000000 C0000034 - means STATUS_OBJECT_NAME_NOT_FOUND C004002D - means IO_DUMP_DRIVER_LOAD_FAILURE
The problem may occur during the shutdown as well. How?
If Fast Startup is enabled, the system logs off all the user sessions completely and then hibernates the system instead of performing a clean shut down. Fast Startup relies upon the hibernation feature, and it dumps the kernel memory to hiberfil.sys file. When fast startup is enabled and a user shuts down the computer, all sessions are logged off, and the computer enters hibernation. As part of the hibernation process, Windows initializes the system’s memory dump configuration. If the filter driver(s) is not loaded, it fails to hibernate, and brings you back to the Windows Lock Screen of the sign-in screen.
To avoid the problem from happening during shutdown (not hibernate), you can disable fast startup or bypass fast startup during shutdown on a per-session basis by running
shutdown.exe /s /t 0 to shut down the computer. To disable Fast Startup:
- Open Control Panel → All Control Panel Items → Power Options (or run
- Click Choose what the power buttons do
- Click Change settings that are currently unavailable
- Uncheck Turn on fast startup
- Click OK.
However, turning off fast startup is a compromise. It’s not a feasible thing to do for most users, as the restart process in Windows continues to perform a full boot cycle, without the hibernation performance benefits.
Resolution: Windows Logs Off User when Shutdown or Hibernate is used
To fix the problem, remove third-party crash dump filter driver references from the registry using the following steps:
- Start the Registry Editor (
regedit.exe) and go to the following key:
- Backup the key by exporting it to a .reg file.
- Double-click the
- Remove all the third-party filter drivers listed in the value. Note that the Windows default driver dumpfve.sys should not be removed.
- Exit the Registry Editor.
- Restart Windows.
The hibernate and shutdown features should now work correctly — with or without Fast Startup enabled.
If you want to resolve the issue without removing 3rd party dump filter drivers, contact the software vendor for an updated version of their product so that it supports the latest version and build of Windows — e.g., Windows 10 v1903.
One small request: If you liked this post, please share this?One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
- Pin it!
- Share it to your favorite blog + Facebook, Reddit
- Tweet it!
About the author
Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and he has been a Microsoft Most Valuable Professional (MVP) for 10 consecutive years from 2003 to 2012.