Are you facing the error message “Your PC ran into a problem and needs to restart” with the stop code wdf_violation? The reasons for WDF_VIOLATION could be various, but don’t worry. MiniTool Solution can help you learn what the error is and how to fix it easily.


Many users have reported that they encountered WDF_VIOLATION error message after installing the latest Windows 10 updates. They said that they tried to boot their PC but it showed that Your PC ran into a problem and needs to restart and the stop code was wdf_violation.

Do you know what WDF_VIOLATION is and why it appears?

WDF stands for Windows Driver Frameworks, a set of Microsoft tools and libraries that aid in the creation of device drivers for Windows 2000 and later versions of Windows. The message WDF_VIOLATION indicates that Windows found an error in a framework-based driver.

Actually, the blue screen stop code wdf_violation is mostly seen in HP PCs, and the reasons could be various.

According to the investigation, the WDF_VIOLATION blue screen error is mainly caused by a faulty HP keyboard driver, HpqKbFiltr.sys (version, which is incompatible with Windows 10 version 1803 and Windows 10 version 1809 on HP computers.

Besides, this blue screen error is gradually seen on the other brand of computers due to the following reasons:

  • Something wrong with USB peripherals
  • Bluetoothdriver and other driver issues
  • Corrupted systemfiles
  • Virus attack

How to fix WDF_VIOLATION blue screen of death problem on your Windows 10? You can try the following solutions one by one.

Windows 10 Blue Screen of Death – You Can Quickly Fix It
Windows 10 Blue Screen of Death – You Can Quickly Fix It

Want to Fix Windows 10 Blue Screen of Death Error? Here are step-by-step tutorials. Just choose most proper one and try them out.

Read More

Solution 1: Remove the Faulty HP Keyboard Driver

As it is mentioned, the faulty HpqKbFiltr.sys driver is a reason for the WDF_VIOLATION BSOD error. To address this issue, you need to remove or rename this faulty driver. If you are a HP user, you’d better try this solution.

Step 1: Enter the Windows Recovery Environment (WinRE).

Tip: Normally, Windows will attempt to enter WinRE to repair the system automatically when the computer is unable to boot. If Windows fails to enter WinRE, you can turning off and on the PC 3 times or use the installation media as an alternative way.

Step 2: Go to Troubleshoot > Advanced options > Command Prompt.

click Command Prompt

Step 3: Input the command below according to your version of Windows and press Enter to remove HpqKbFiltr.sys driver.

  • 32-bit version of Windows: dism /Image:C /Remove-Driver /Driver: C:WindowsSystem32DriverStoreFileRepositoryhpqkbfiltr.inf_x86_f1527018cecbb8c2HpqKbFiltr.inf
  • 64-bit version of Windows: dism /Image:C: /Remove-Driver/Driver: c:WindowsSystem32driverstoreFileRepositoryhpqkbfiltr.inf_amd64_714aca0508a80e9aHpqKbFiltr.inf

Step 4: Exit WinRE and reboot your computer to check whether wdf violation error has been fixed.

Note: Microsoft has released a patch KB4468304 to help people remove HpqKbFiltr.sys driver automatically. If your computer can boot successfully, you can click here to download and install it.

Solution 2: Disconnect All USB Peripherals

The wdf violation error could also be caused by some USB peripherals. Therefore, you can try disconnecting all USB peripherals from your computer to fix this error, including the mouse, camera, microphone and so on.

If it’s not working, you can disable USB ports in BIOS with the following steps.

Tip: The certain keys to enter BIOS and disable USB ports could be different on your version of BIOS so that these steps are for references only, and you need to follow the instructions on your screen.

Step 1: Restart your computer and keep pressing F2 or Del to enter BIOS.

Step 2: In BIOS, navigate to Advanced Tab Miscellaneous Devices External USB Ports, and then disable External USB ports.

Step 3: Save and exit the BIOS.

Once it’s done, restart your computer and see if WDF_VIOLATION is solved.

Solution 3: Uninstall Bluetooth Driver in Safe Mode

Some users have reported that they successfully removed the stop code wdf_violation by uninstalling Bluetooth driver. You can run Windows in Safe Mode and then remove the problematic driver if the first two methods are not effective for you.

Step by Step Guide: How to Turn on Bluetooth on Windows 10
Step by Step Guide: How to Turn on Bluetooth on Windows 10

Many users don’t know how to turn on Bluetooth on Windows 10 and how to pair a Bluetooth device on Windows 10. This article will show you the methods.

Read More

Step 1: Enter WinRE and click TroubleshootAdvanced options > Startup SettingsRestart to open Startup Settings.

Step 2: Press F5 to select Enable Safe Mode with Networking to run your computer in Safe Mode.

Safe Mode with Networking

Tip: Safe Mode is a built-in diagnostic mode of Windows 10 (7, 8, etc.). Therefore, you can start Windows 10 in Safe Mode to identify if it’s the Windows 10 default settings and drivers that are causing the misbehaving of Windows 10 PC.

Step 3: Press Win + X and choose Device Manager from the list.

Step 4: Now locate your Bluetooth driver and right-click it. Then choose Uninstall device from the menu.

uninstall device

Step 5: In the pop-up window, check Delete the driver software for this device and click Uninstall.

Then you can restart your PC and check if it works well.

Tip: The WDF_VIOLATION blue screen error could also be caused by other drivers. You can check the crash log to find the problematic driver and uninstall it with the same method.

The WDF_VIOLATION blue screen error makes me annoyed, but fortunately, here are some solutions to remove it. I’d like to share it with you.Click to Tweet

Solution 5: Run Startup Repair

If you cannot enter Windows Safe Mode, Starup Repair is a good choice to solve the issue.

You are able to find Startup Repair in WinRE, or you can use a Windows installation disk to boot your PC, and then click Repair your computer.

After that, go to TroubleshootAdvanced OptionsStartup Repair. Choose the target operating system to fix and Windows will find the problems, fix them and then restart your computer.

7 Solutions to Fix Windows Failed to Start Windows 7 Error
7 Solutions to Fix Windows Failed to Start Windows 7 Error

When you start Windows 7/8/8.1/Vista, have you ever encountered “Windows failed to start” error? This article will show you 7 fixes to help you fix this issue.

Read More

Solution 6: Perform a System Restore

There is another way to solve WDF_VIOLATION: Perform a system restore. System Restore can help fix problems that make your computer run slowly or stop responding by getting Windows back to previous status.

If you have created a restore point before, you can use it to restore your system and fix WDF_VIOLATION error. Try these steps:

Step 1: In Safe Mode, press Win + S to open Search. Then input restore in the box and choose Create a restore point from the results.

create a restore point

Step 2: Go to System Protection tab and click System Restore.

click System Restore

Tip: You can also enter System Restore in WinRE. Just go to Troubleshoot > Advanced options > System Restore. Then select your user account and type your password.

Step 3: Click Next when System Restore window opens.

Step 4: Select the restore point you want to use and click Next to proceed.

click Next

Step 5: Follow the instructions on the screen to finish the process.

Tip: System Restore does not affect any of your documents, pictures or other personal data, but recently installed programs and drivers might be uninstalled.

Solution 7: Run System File Checker

Corrupted system file could also be responsible for WDF_VIOLATION blue screen error. To fix the problem, you can run System File Checker (SFC) in Windows 10 Safe Mode.

Step 1: Run command prompt as administrator in Safe Mode.

Step 2: Input the command sfc /scannow and press Enter key. Then wait until the System File Check finish and then reboot your computer to see whether WDF_VIOLATION appears.

sfc /scannow

Tip: You can also use a Windows installation disk and follow the path: Repair your computer > > TroubleshootAdvanced optionsCommand Prompt to open command prompt.

Solution 8: Reset or Reinstall Windows

If you still have WDF_VIOLATION blue screen issue after you tried the solutions above, you can reset or reinstall Windows to fix it.

Let’s see how to do it.

Just in case, you need to recover and backup important files before you reset or reinstall Windows as thees operations will clean the original system partition.

  • If your operating system works well, you just need to back up your disk.
  • If the computer fails toboot, you can use MiniTool Partition Wizard to perform data recovery.

Here is the guide on how to recover data when your PC cannot boot.

Tip: Considering that your PC is unable to start, you need to create a bootable media on another computer that works well.

Step 1: Click the following button to download and install MiniTool Partition Wizard.

Step 2: Launch it and create boot CD/DVD discs or boot flash drive with bootable media builder.

Step 3: Connect the bootable media to your PC on which WDF_VIOLATION appears, and configure the BIOS settings to boot from the media.

Step 4: Right-click your system partition and choose Data Recovery.

Tip: The drive letter can be changed in the bootable version and please make sure you have chosen the system partition.

Step 5: After scanning, check the files you need and then click Save.

check some files

Tip: You need to choose another partition when you select a directory to save files.

Now you can reset or reinstall Windows to fix WDF_VIOLATION and there is no need to worry about data loss.

To reset Windows, you just need to enter WinRE and go to TroubleshootRest this PC, and then follow the instructions to finish the process.

Tip: You can choose Keep my files when you reset this PC, which has no influence on your personal files and folders.
3 Ways to Fix Windows 10 Reset Stuck at 1/66/99 % Black Screen
3 Ways to Fix Windows 10 Reset Stuck at 1/66/99 % Black Screen

Windows 10 reset stuck at 1/12/66/99 percent? Here are 3 useful methods to fix Windows 10 reset stuck on spinning circle black screen.

Read More

Here are 8 step by step solutions which are helpful when you encounter the error message “Your PC ran into a problem and needs to restart” with the stop code WDF_VIOLATION.Click to Tweet

Back up Your Windows

Now you must have removed WDF_VIOLATION blue screen error and boot your computer successfully. To avoid the similar system error in the next days, I recommend you to back up your disk so that you don’t need to spend much time on recovering your computer.

You can use MiniTool Partition Wizard Pro Ultimate. It is capable of copying all partitions and data from your system disk to another disk, and you can boot your PC from the copy. Click the button below to get the program if you haven’t installed it.

Step 1: Launch MiniTool Partition Wizard.

Step 2: Click Copy Disk Wizard from the action panel.

click Copy Disk Wizard

Step 3: Choose the disk you want to back up and follow the wizard to complete the backup process.

Tip: To avoid the virus attack which may cause some problems for your computer, you can run Windows Defender Firewall regularly.

Bottom Line

This article introduces the information about the error message “Your PC ran into a problem and needs to restart” with the stop code sdf_violation. You can find 8 ways to solve the problem and you’d better back up your disk so that you can boot the computer from the copy of the source disk once your PC run into a problem or crash.

If you have more ideas about how to fix WDF_VIOLATION blue screen error, please let us know by posting them in the comment section below. For any questions towards MiniTool Partition Wizard, you can contact us via [email protected] and you will get reply very soon.


How do I open Safe Mode in Windows 10?
You can go to Windows Recovery Environment and click Troubleshoot > Advanced options > Startup Settings > Restart. Then Press 5 or F5 to boot Windows 10 in Safe Mode with Networking.
How do I exit Safe Mode?
  1. Open Run window and input msconfig. Then click OK to access System Configuration.
  2. Choose Boot tab, and uncheck the Safe boot option.
  3. Hit Apply and then click OK.
  • linkedin
  • reddit