Fix: WDF_Violation Blue Screen (BSOD)

WDF_Violation usually occurs in later versions of Windows operating system (7/8/10). This error usually occurs due to the following reasons:

  • System files are corrupt
  • There are broken registry entries
  • System is infected by Virus or Malware
  • Certain drivers are outdated or corrupt
  • The hard drive is faulty

This BSOD is a fairly common one and usually occurs when you connect an external device to your computer. It also occurs when you try to sync an iDevice with iTunes. The response from the keyboard or mouse becomes very laggy etc. There are two cases which arise due to this BSOD: one where you can log into your system and the other where you cannot

Section 1: When you Can Log into your System

Here we discuss the solutions if you can log into your system i.e. the Desktop of your computer is accessible. The scenario where you cannot log into your account is addressed later in the article.

Solution 1: Updating Drivers

The most common cause of this issue is that the drivers installed for devices on your computer are not up-to-date or are corrupt in many cases. If you have no idea which driver might be causing the problem, it is advised that you take out some time and update each and every one.

There are two ways to update the drivers: automatically or manually. In automatic, an internet connection is required and Windows searches its database for the best drivers available. If this doesn’t work, you can head over to your manufacturer’s website, download the drivers to an accessible location and install them from there. Here is an example of how to update the drivers:

  1. Press Windows + R to launch the Run Type “devmgmt.msc” in the dialogue box and hit Enter. This will launch your computer’s device manager.
  2. Navigate through all the hardware, and right click on the device you are experiencing the error, and select “Update driver”.

  1. Now Windows will pop a dialogue box asking you which way do you want to update your driver. Select the second option (Browse my computer for driver software) and proceed.

Select the driver file you downloaded using the browse button when it appears and update it accordingly.

  1. Restart your computer and check if the problem gets resolved.

Note: You can use the first option “Search automatically for updated driver software” first before resorting to the second option.

Solution 2: Using Device Verifier

We can use another tool developed by Microsoft to check for unusual behavior of the system and the hardware. In many cases, illegal actions of some system modules or the hardware can lead to the BSOD under discussion. Do note that during this process, your system might crash so make sure that all your data is backed up safely.

  1. Press Windows + S, type “command prompt”, right-click on the application and select “Run as administrator”.
  2. Once in elevated command prompt, execute the following command:


  1. Select “Create standard settings” and press “Next” to proceed.

  1. Select “Automatically select all drivers installed on this computer” and click “Finish”. Now Windows will scan for errors. Make sure that you have backed up all your progress before proceeding. A prompt will come forward for you to restart your computer. Restart your computer.

Solution 3: Scanning for Malware

Sometimes, this unusual behavior is caused by malware or virus present on your machine. They may have special scripts which run in the background which can be extracting your data or making changes to the settings.

Scan your computer using your antivirus utility and ensure that your PC is clean. If you don’t have any specific antivirus utility installed, you can use the Windows Defender utility and scan.

  1. Press Windows + S to launch the start menu’s search bar. Type “Windows Defender” and open the first result which comes forward.

  1. At the right side of the screen, you will see a scan option. Select the full scan and click on Scan This process might take some time as Windows scans all of your computer’s files one by one. Be patient and let the process complete accordingly. Restart your computer at the end and check if the problem is solved.

Solution 4: Disconnecting all External Devices

Another workaround which worked for many people was disconnecting all externally connected devices. It is possible that the device is causing the system to crash indefinitely time to time. You should shut down your computer, disconnect all the devices and boot it back on.

If the BSOD doesn’t occur, you can plug them one by one and check which device might be causing the problem. If you identify the device, make sure that you update its driver. If updating the driver doesn’t work, plug the device to further cross out possibilities.

Solution 5: Enabling Disk Use for iTunes

If you are using an iDevice to sync with your iTunes and the error occurs, we can try enabling “Disk Use” for iTunes and check if the problem gets solved. This solution is only for users who have iTunes installed on their computer and use it fairly actively.

  1. Make sure that you are logged in as an administrator. Open iTunes and connect your device using a proper data cable.
  2. Click on “Summary” and check the option “Enable disk use”.

Section 2: When You Cannot Log into the System

If you cannot log into the system i.e. you are not able to reach the desktop, we can try hard booting your PC. If that doesn’t work, you have to reset your Windows indefinitely as there isn’t much you can do.

Solution 1: Hard booting your Computer

To perform a hard boot, you have to turn off your computer completely. Unplug the power cord providing power. Then unplug all devices connected externally to the machine (including mouse etc.). Remove the battery carefully. Now press the Power button for more than 30 seconds. Keep pressing it throughout the time.

Plug the battery back on, plug in the Power and turn on your machine with all external devices still disconnected. If your computer turns on successfully, plug in the devices one by one with time intervals in between.

Solution 2: Resetting Windows 10

If all the above solutions don’t work, you can try repairing/reinstalling Windows on your PC using bootable media. If you have different partitions made, hopefully, your data will still be there; but, it is still recommended that you do a complete clean install of the operating system. You check our article on how to create a bootable media. There are two ways: by using media creation tool by Microsoft and by using Rufus.

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

Fix: WDF_Violation Blue Screen (BSOD)

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