The error message "WinDivert driver cannot be installed, you must restart your computer" often appears when users try to run network tools like GoodbyeDPI, ReQrypt, or custom VPN software. This usually happens because an older version of the driver is stuck in memory, or Windows is blocking the new installation due to security settings like Memory Integrity. Why the Error Persists After Restarting A standard reboot doesn't always clear the issue if:
Stale Services: An old WinDivert service is still registered but points to a file that no longer exists.
Security Blocks: Windows "Core Isolation" or antivirus software (like Sophos) is blocking the driver from loading.
Missing Files: The software is looking for WinDivert64.sys or WinDivert32.sys in the wrong directory. Step-by-Step Fixes 1. Manually Remove the Old Service
If Windows says you need a restart, it’s likely because it’s trying to overwrite a service that’s "marked for deletion." You can force this process using the command prompt: Open Command Prompt as an Administrator.
Type the following commands one by one, pressing Enter after each: sc stop windivert sc delete windivert Use code with caution.
If these fail, try using the windivertctl tool by running windivertctl.exe uninstall from your application's directory. 2. Disable Core Isolation (Memory Integrity)
Modern Windows 10 and 11 security features can prevent "unsigned" or older drivers from loading. Go to Windows Security > Device Security. Click on Core isolation details. Toggle Memory Integrity to Off. Restart your computer and try running the software again. 3. Verify File Placement
WinDivert requires specific files to be in the same folder as your .exe. Ensure your program directory contains: WinDivert.dll WinDivert64.sys (for 64-bit systems) WinDivert32.sys (for 32-bit systems) WinDivert.inf
Tip: Some users found that manually copying WinDivert64.sys into C:\Windows\System32 resolved persistent installation errors. 4. Clean the Registry (Last Resort)
If the software still insists on a restart, you may need to clear the driver's registration manually: Open regedit (Registry Editor).
Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDivert. Right-click and Delete the WinDivert folder. Restart your PC. Summary Checklist Old driver stuck Run sc delete windivert in Admin CMD. Windows Security block Turn off Memory Integrity in Core Isolation. Incompatible software
Temporarily disable antivirus like Sophos or specialized firewalls. Missing components Ensure .sys and .dll files are in the program folder.
Did you recently update Windows or install a new antivirus before this error started appearing? WinDivert not working on Windows 10 20H2 #253 - GitHub
This error usually happens when a previous version of the WinDivert driver is still active or registered in a way that prevents a new installation
. While a restart often clears the driver from memory, it may not remove the service entry if it's stuck. Quick Fixes Run as Administrator
: Ensure the application requesting the driver is running with full Administrator privileges Manual Service Removal
: If a restart doesn't work, manually stop and delete the existing service using the Command Prompt (run as Admin): sc stop windivert sc delete windivert
Note: If you use a versioned name like "WinDivert1.0", use that exact name in the command. Check for Conflicts
: Antivirus software (like Sophos) can sometimes block the driver from loading. Try temporarily disabling your security software to see if the installation proceeds. Stack Overflow Advanced Solutions Clean Registry Entry
: If the service commands fail, you can manually remove the driver's registry key. Open and navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDivert Delete this entry and then restart your computer Fix WMI Errors
: Some users have reported this error in relation to WMI (Windows Management Instrumentation) corruption. Tools like the Microsoft Activation Script (MAS)
have a "Fix WMI" feature that can resolve underlying system issues preventing the driver from installing. Verify Driver Signature : Ensure Windows
is enabled if you are using an unsigned or self-built version of the driver. Run Bcdedit.exe -set TESTSIGNING ON and restart. WinDivert not working on Windows 10 20H2 #253 - GitHub
The error "WinDivert driver cannot be installed you must restart your computer" typically indicates that a previous instance of the driver is still active or a registry conflict is preventing a new installation. Immediate Solutions
Run as Administrator: Ensure the application using WinDivert (like a VPN or network tool) is being run with Administrator privileges. Manual Registry Cleanup: Open the Registry Editor (regedit).
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDivert. Delete the WinDivert entry and restart your computer.
Force Service Stop: Open Command Prompt as Administrator and run the following commands to clear stuck services: sc stop WinDivert
sc delete WinDivert (Note: You may need to use the specific version name, such as WinDivert1.4 or WinDivert2.2). Troubleshooting Persistent Loops
If restarting doesn't fix the issue, check these common conflicts:
Security Software Interference: Windows Security features like Memory Integrity can block WinDivert from loading. You can try disabling Memory Integrity in the Core isolation settings under Device Security.
Identify Blocking Programs: Use Resource Monitor (Task Manager > Performance > Open Resource Monitor) and search for "WinDivert" under Associated Handles to see which programs are currently using the driver and terminate them. The error message "WinDivert driver cannot be installed,
System Integrity Check: Corrupted system files can cause driver installation loops. Run sfc /scannow in an elevated Command Prompt to repair potential errors. Manual File Removal
If the driver is still stuck, manually delete the driver files and reboot:
Search for and delete WinDivert32.sys and WinDivert64.sys from your system folders or the application directory.
Are you seeing this error while using a specific application like X-VPN or a gaming tool? WinDivert not working on Windows 10 20H2 #253 - GitHub
If none of the above solutions work, try reinstalling Windivert.
Conclusion
The "Windivert driver cannot be installed. You must restart your computer" error can be frustrating, but it's often resolvable with the right troubleshooting steps. By following the solutions outlined in this article, you should be able to successfully install the Windivert driver and continue using your network monitoring or packet capture tools. If issues persist, consider seeking additional help from the Windivert community or support forums.
The error message “WinDivert driver cannot be installed. You must restart your computer” typically appears when an application (like a VPN, network monitor, packet sniffer, or firewall) tries to use the WinDivert driver — a legitimate, open‑source packet capture/modification library — but the installation or loading of its driver fails.
Here’s what this means and how to fix it.
If you've previously attempted to install Windivert, remnants of those installations might be causing issues. Clean up any leftover files or registry entries.
net stop windivert
sc delete windivert
Restart first; then run the installer as Administrator, ensure no app is using WinDivert, check Event Viewer and sc query/stop for the driver, update Windows/driver, and reinstall the latest WinDivert package if needed.
Related searches I can suggest: (Automatically adding search terms for deeper lookup)
The "WinDivert driver cannot be installed" error typically occurs when a previous version of the driver is stuck in memory or the Windows registry, or when core security settings block its execution. Common Causes for Installation Failure
Active Service Conflict: A previous instance of the WinDivert service is still registered or running in the background.
Stuck Registry Entries: Corrupted or "ghost" registry keys from a failed uninstallation prevent new driver registration.
Windows Security Blocks: Windows features like Memory Integrity or missing digital signatures can prevent the driver from loading.
Missing Dependencies: Essential files like WinDivert.dll, WinDivert.inf, or the .sys driver files are missing from the application's root folder. Step-by-Step Fixes 1. Force Stop and Delete the Existing Service
If restarting hasn't worked, the service might be re-registering itself automatically.
Search for CMD in the Start menu, right-click it, and select Run as Administrator.
Type the following commands one by one, pressing Enter after each:
sc stop WinDivert (or sc stop WinDivert1.4 depending on your version). sc delete WinDivert.
Restart your computer and try running the application again. 2. Clear the WinDivert Registry Key
Manually removing the service key often breaks the "must restart" loop. Press Win + R, type regedit, and press Enter.
Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
Find the WinDivert folder (it may have a version number attached). Right-click the folder and select Delete. Reboot your PC immediately after. 3. Disable Core Isolation (Memory Integrity)
Modern Windows security can block older or unsigned drivers. Go to Settings > Privacy & Security > Windows Security. Select Device Security > Core isolation details. Toggle Memory Integrity to Off. Restart and attempt the installation again. 4. Verify File Placement
WinDivert is often "portable" and requires its driver files to be in the same directory as the .exe that calls it. Ensure these three files are in your program folder: WinDivert.dll
WinDivert32.sys (for 32-bit) or WinDivert64.sys (for 64-bit) WinDivert.inf (if provided by the developer) Summary Checklist WinDivert not working on Windows 10 20H2 #253 - GitHub
If you're seeing the error "WinDivert driver cannot be installed, you must restart your computer," it usually means an old version of the driver is stuck in memory or a service conflict is preventing the new one from loading.
Here is a troubleshooting guide you can use for a post or to fix the issue yourself. Quick Fixes
Run as Administrator: Ensure the application using WinDivert (like GoodbyeDPI or a VPN) is launched with Administrator privileges.
The "Double Restart": Sometimes Windows holds onto driver handles even after one reboot. Try a second full restart to clear the system cache. Advanced Troubleshooting Solution 6: Reinstall Windivert If none of the
If a simple restart doesn't work, follow these steps to manually clear the driver:
1. Force-Delete the ServiceAn old service entry might be pointing to a file that no longer exists. Open Command Prompt as Administrator.
Type the following commands one by one, pressing Enter after each: sc stop windivert sc delete windivert Restart your computer and try running the app again.
2. Clean the RegistryIf the service persists, you may need to manually remove its registry key. Press Win + R, type regedit, and hit Enter.
Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDivert. Right-click the WinDivert folder and select Delete. Restart your computer immediately.
3. Check for Security Software BlocksSome Antivirus programs (like Sophos) block WinDivert because it intercepts network packets. Try temporarily disabling your antivirus or adding the application folder to your Exclusions list.
4. Verify File PlacementEnsure all required files are in the same folder as your application: WinDivert.dll
WinDivert64.sys (for 64-bit systems) or WinDivert32.sys (for 32-bit systems) WinDivert.inf Why does this happen? WinDivert not working on Windows 10 20H2 #253 - GitHub
The error "WinDivert driver cannot be installed, you must restart your computer"
typically occurs when a previous version of the driver is stuck in memory or a service entry is blocking a new installation 1. Remove the Existing Service
Manually stopping and deleting the service often fixes persistent installation errors. Stack Overflow Command Prompt Administrator Type the following commands one by one, pressing after each: sc stop WinDivert sc delete WinDivert your computer and try running your application again. 2. Clear Registry Entries
If the service deletion fails, a leftover registry key may be the cause. Navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDivert Right-click the folder and select your system immediately after. 3. Disable Memory Integrity (Windows 10/11) Windows Security features like Memory Integrity can block non-standard drivers from loading. Microsoft Support Privacy & Security Windows Security Device Security Core isolation details Memory Integrity and restart your PC. Microsoft Support 4. Verify File Placement & Permissions Admin Rights : Ensure the application using WinDivert is set to Run as Administrator File Location : Verify that WinDivert.sys WinDivert.dll WinDivert.inf
are all in the same folder as your application's executable. Architecture Match : Ensure you are using the 64-bit driver ( WinDivert64.sys
) for 64-bit Windows or the 32-bit version for 32-bit systems. Stack Overflow For more technical details, you can refer to the official WinDivert Documentation on GitHub
Did this error appear while you were trying to use a specific network tool WinDivert not working on Windows 10 20H2 #253 - GitHub 17 Nov 2020 —
The error "WinDivert driver cannot be installed you must restart your computer" typically occurs when a previous version of the driver is stuck in memory or a registry conflict prevents the service from initializing Quick Fixes & Troubleshooting Manual Service Reset
: Sometimes the driver is "registered" but not active. Run these commands in an Administrator command prompt: sc stop WinDivert sc delete WinDivert
Restart your computer and try launching the application again. Registry Cleanup
: If the error persists after a restart, there may be a stale registry entry. Navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDivert
Delete this key and reboot. This forces Windows to recognize the driver as a fresh installation. Memory Integrity Conflict : Modern Windows 10/11 security features like Memory Integrity
(Core Isolation) can block WinDivert because it is a low-level kernel driver. Windows Security Device Security Core Isolation details
If enabled, try disabling Memory Integrity temporarily to see if the driver loads. Digital Signature Issues
: WinDivert requires a valid digital signature. Ensure you are using the correct version (64-bit for 64-bit systems) and that your Windows version is up to date. Some older Windows versions (like Windows 7 or early 10) may need specific SHA-2 patches to verify newer signatures. Stack Overflow WinDivert not working on Windows 10 20H2 #253 - GitHub
The error "WinDivert driver cannot be installed, you must restart your computer" generally occurs when an older version of the WinDivert service is still registered in the system or if active processes are preventing a fresh driver from loading. Because WinDivert is a kernel-mode driver, Windows often requires a reboot to clear locked memory or stubborn registry entries that point to non-existent or conflicting file paths. Common Causes for the Error
Stale Service Registry: An existing WinDivert service may be pointing to a file path that no longer exists, preventing the new driver from installing.
Locked Driver Files: If a previous application (like a VPN or packet tool) is still running, the driver file is "in use" and cannot be replaced or re-initialized until the system is clear.
Version Mismatch: Attempting to load a 32-bit driver on a 64-bit system (or vice versa) can trigger installation failures.
Security Software Interference: Modern antivirus or Windows features like Memory Integrity (Core Isolation) may block the driver from loading, leading to generic "cannot be installed" messages. Effective Solutions
If a standard restart does not resolve the issue, follow these steps to manually clear the driver:
Force Delete the ServiceOpen Command Prompt as Administrator and run the following commands to stop and remove any existing WinDivert service: sc stop windivert Download the latest Windivert version from the official
sc delete windivert(Note: If you have an older version, the service might be named WinDivert1.0 or WinDivert1.4).
Clear Registry EntriesIf the service persists, you may need to manually delete the registry key.
Open regedit and navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDivert. Right-click and Delete the WinDivert folder.
Restart your computer immediately after this step to ensure the kernel resets. Check for Driver Signing & Security
Disable Memory Integrity: If you are on Windows 10/11, go to Windows Security > Device Security > Core Isolation and try turning off Memory Integrity.
Verify Files: Ensure WinDivert.sys, WinDivert.inf, and WdfCoInstaller*.dll are all present in your application's directory.
Antivirus: Check if software like Sophos or other antivirus tools have quarantined the .sys file.
Resource Monitor CheckTo identify which program is currently using the driver, open Task Manager, go to the Performance tab, and open Resource Monitor. In the CPU tab, search for "WinDivert" under Associated Handles to see which apps need to be closed. WinDivert not working on Windows 10 20H2 #253 - GitHub
This error typically occurs when a previous version of the WinDivert driver is stuck in memory or its service registry entry is corrupted, preventing a new installation. 1. Clear Corrupted Registry Entries
Manual removal of the registry key is often the most effective fix for this specific "restart loop" error. Press Win + R, type regedit, and press Enter.
Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDivert Right-click the WinDivert folder and select Delete. Restart your computer and try the installation again. 2. Manually Remove the Service
If the driver is "stubborn," you can force-delete the service via the Command Prompt. Open Command Prompt as an Administrator. Type the following commands, pressing Enter after each: sc stop WinDivert sc delete WinDivert
If your software uses a specific version (e.g., 1.4), use sc stop WinDivert1.4 and sc delete WinDivert1.4. 3. Disable Memory Integrity (Windows 10/11)
Windows Security features like Core Isolation can block WinDivert because it is a kernel-mode driver.
Go to Start > Settings > Update & Security > Windows Security. Select Device Security and click Core isolation details. Toggle Memory integrity to Off. Restart your PC. 4. Verify File Placement
WinDivert requires specific files to be in the same folder as the application trying to use it. Ensure these files are present in your program's directory: WinDivert.dll
WinDivert32.sys (for 32-bit systems) or WinDivert64.sys (for 64-bit systems) WinDivert.inf
Note: If you are using software like X-VPN or GoodbyeDPI, try uninstalling them entirely, restarting, and then performing a clean reinstallation.
Are you seeing a specific error code (like 110 or 577) alongside this message? WinDivert not working on Windows 10 20H2 #253 - GitHub
Based on your request, it seems you are encountering a persistent WinDivert error where the driver installation fails, and the system demands a restart (often caused by a "System Restart Pending" state in Windows).
Below is a feature design for a "Smart Driver Installer" module. This feature is designed to be integrated into applications using WinDivert (like network blockers, sniffers, or firewalls) to handle this specific error gracefully without crashing or confusing the user.
The "WinDivert driver cannot be installed you must restart your computer" error is usually caused by the Windows Fast Startup feature not fully resetting the driver state, or by leftover driver files from a previous crash.
The Quick Fix Checklist:
Shift + Restart).WinDivert.sys files from the System32 or App folders.Did these solutions work for you? Let us know in the comments which step fixed the issue!
Troubleshooting the Windivert Driver Installation Issue: A Comprehensive Guide
Are you encountering the frustrating error message "Windivert driver cannot be installed. You must restart your computer" while attempting to install the Windivert driver on your Windows system? This issue can be a significant roadblock, especially if you're trying to set up a network monitoring or packet capture tool that relies on Windivert. In this article, we'll explore the potential causes of this problem and provide step-by-step solutions to help you successfully install the Windivert driver.
Understanding Windivert and Its Importance
Windivert is a user-mode packet diversion driver that allows applications to capture, modify, and inject network packets on Windows systems. It's a crucial component for various network monitoring, testing, and security tools. However, the installation process can sometimes be disrupted by system errors or compatibility issues, leading to the "Windivert driver cannot be installed" error.
Potential Causes of the Error
Before diving into the solutions, let's examine some possible reasons behind this error:
Step-by-Step Solutions
To resolve the "Windivert driver cannot be installed" error, follow these step-by-step solutions: