To fix the "WinDivert driver cannot be installed" error without a full system restart, you can try manually cleaning up old service entries and files. This error often occurs because a previous version of the driver is stuck in a "zombie" state or its service is pointing to a path that no longer exists Quick Fix Steps Stop and Delete the Service Command Prompt as Administrator and run these commands to force-remove the existing driver service: sc stop windivert sc delete windivert Note: If you are using version 1.0, the service name may be WinDivert1.0 Clean the Registry : If the service commands don't work, manually delete the registry key: (Registry Editor). Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDivert Right-click and Check for Residual Files : Ensure there aren't conflicting files in your system folders. Search for WinDivert32.sys WinDivert64.sys in your program directory or C:\Windows\System32\drivers and remove them if they are not in use by your current application. Security Software : Check if an antivirus (like Sophos or Windows Defender's Core Isolation) is blocking the driver from loading. Review: WinDivert Rating: ★★★★☆ (Powerful but Temperamental) WinDivert is an exceptional tool for developers and advanced users who need to capture, divert, and drop network packets on Windows without writing complex kernel-mode drivers. WinDivert not working on Windows 10 20H2 #253 - GitHub
Title: The Network Guard Who Refused to Stand Up The Character: Maya, a system administrator for a small online retailer. The Situation: It’s 11:00 PM on a Friday. Maya is rolling out a new security tool that filters network traffic—a tool that relies on the WinDivert driver (a lightweight, open-source driver used by firewalls, VPNs, and packet analyzers). The installation is routine. She clicks "Install." The Error: A red dialog box pops up:
"WinDivert driver cannot be installed. You must restart your computer."
Maya sighs. She tries running the installer as Administrator. Same error. She disables antivirus. Same error. She checks Device Manager—no yellow flags. She even manually tries to register the driver with sc start WinDivert . Nothing works. The Realization: She remembers: WinDivert is a kernel-mode driver . Windows locks driver installation when: To fix the "WinDivert driver cannot be installed"
A previous version of the driver is partially loaded but pending deletion. A system file is in use by another process (like a VPN or firewall that crashed earlier). Windows is in a "pending restart" state from a previous update or software installation.
Her colleague, Tom, had installed a beta VPN tool earlier that week and uninstalled it improperly. That left a stale driver reference in the registry—Windows knows the old driver exists but can’t overwrite it without a reboot. The Solution (the "Useful" part): Instead of fighting the error, Maya does exactly what the message says—but first, she checks one thing:
She opens a Command Prompt as Administrator and runs: pnputil /enum-drivers | findstr WinDivert → No active drivers found, confirming it’s a stale lock. Search for WinDivert32
She checks for pending reboots with: reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired" → The key exists. Windows itself is waiting for a reboot.
She restarts the computer cleanly —not a shutdown, a full restart.
After reboot, she runs the WinDivert installer again. It succeeds in 10 seconds. The tool starts filtering traffic as expected. The Moral: When a low-level driver says "cannot install, you must restart," it’s rarely a bug. It’s Windows protecting kernel integrity. Trying to bypass it with hacks (like forcing driver loads) can cause blue screens. The fastest path forward is the simplest one: restart, then retry. Bonus tip from Maya: If the error persists after restart, run sc delete WinDivert (if it exists as a service) then reinstall. But 95% of the time, a single reboot is all you need. WinDivert not working on Windows 10 20H2 #253
The "WinDivert driver cannot be installed" error usually happens when a previous version of the driver is stuck in a half-uninstalled state or blocked by system security settings. While a simple restart is the first recommended step, it often doesn't clear the underlying service conflict or digital signature block. Troubleshooting the WinDivert Driver Error Run as Administrator : Ensure the application using WinDivert is running with elevated privileges, as it cannot install or load drivers otherwise. Force-Remove the Service : Use the Command Prompt (Admin) to manually clear the stuck driver: sc stop windivert sc delete windivert Restart your computer and try again. Check Registry Entries : If the service commands fail, manually delete the WinDivert registry key: Open regedit and go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDivert . Delete the entry and reboot. Security Software & Memory Integrity : Antivirus software (like Sophos) or Windows' Memory Integrity setting can block the driver. Try temporarily disabling Memory Integrity in Windows Security > Device Security > Core Isolation . Digital Signature Issues : If you see "Error 577," Windows is rejecting the driver's signature. Updating Windows often resolves this by refreshing root certificates. Blog Post: How to Fix the "WinDivert Driver Cannot Be Installed" Loop If you're seeing the "WinDivert driver cannot be installed, you must restart your computer" message on repeat, you’re likely stuck in a "zombie service" loop. This driver, used by tools like GoodbyeDPI or FakeNet-NG , often fails because an older version didn't clean up after itself or Windows Security thinks it’s a threat. 1. The "Clean Slate" Method (Admin Prompt) Most of the time, the driver is registered but not actually running. You can clear this by opening Command Prompt as Administrator and typing: sc stop windivert sc delete windivert Use code with caution. Copied to clipboard Restart your PC immediately after. This forces Windows to drop any "pending" installation requests. 2. Clear the Registry "Ghost" If the command prompt doesn't work, the driver's ghost is in your registry. Search for regedit . Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDivert Right-click and Delete the WinDivert folder. 3. Disable Core Isolation Windows 10 and 11 have a feature called Memory Integrity (part of Core Isolation) that blocks drivers it doesn't recognize. If your WinDivert version is older or unsigned, Windows will block it silently. Go to Settings > Update & Security > Windows Security > Device Security . Click Core isolation details and toggle Memory integrity to Off . Restart and try the installation again. 4. The "Missing File" Quick Fix Sometimes the driver fails because WinDivert64.sys isn't where the program expects it to be. Try copying the .sys file from your program's folder directly into C:\Windows\System32\drivers to see if it bypasses the install error. WinDivert: What is the reason behind the error message "error
The error "WinDivert driver cannot be installed, you must restart your computer" typically occurs when a program using the library—often tools like GoodbyeDPI —fails to load its network driver due to a conflict or a "zombie" service from a previous session. Stack Overflow The Story Behind the Loop When you run a WinDivert-based app, it attempts to install a kernel-mode driver on the fly. If the driver is already partially loaded in a "stuck" state, or if an older version's service is still registered, Windows blocks the new installation. The system suggests a restart because that's the easiest way to clear out resident drivers, but sometimes the "zombie" service survives even a reboot if it's set to auto-start or if the registry is corrupted. Common Fixes (No Restart Loop Required) If restarting hasn't worked, you can usually break the cycle manually: Kill Stuck Services Command Prompt as Administrator and run these commands to force-stop and delete the old driver instance: sc stop WinDivert sc delete WinDivert Use code with caution. Copied to clipboard (Note: The service name might vary by version, such as WinDivert1.4 WinDivert2.0 Check Administrator Privileges : The driver cannot install without elevated rights. Always right-click your application and select Run as Administrator Antivirus Interference : Security software like often flags WinDivert as suspicious because it intercepts network packets, blocking its installation. Try temporarily disabling your antivirus to see if the driver installs. Manual Registry Cleanup : As a last resort, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDivert Registry Editor and delete the entry before rebooting. Why it Happens on Older Windows If you are on , the installation might fail because the modern WinDivert driver is signed with , which older systems don't recognize without specific updates (like Command Prompt instructions for a different version of WinDivert or a specific app like GoodbyeDPI WinDivert not working on Windows 10 20H2 #253 - GitHub