The BSOD error INVALID KERNEL HANDLE indicates that an invalid or protected handle was passed to NtClose. Usually, faulty hardware or corrupted OS files are the major cause of this particular blue screen error.
Besides this, wrong entries in the registry or failed Windows update may be why you are getting INVALID KERNEL HANDLE ERROR. To fix, we have listed a few of the solutions that may solve INVALID KERNEL HANDLE BSOD error on your PC.
Table of Contents
What Is INVALID KERNEL HANDLE Error, And What Causes It?
- Corrupted system files
- Damaged RAM
- Bad sectors on the drive containing OS
- Outdated driver
- Incorrect registry values
- Outdated version of Windows
How to Fix INVALID KERNEL HANDLE Error?
Some of the headings explained below are troubleshooting steps. These steps may not fix the problem, but they will provide you with information on the reason behind what’s causing the blue screen. First, let us start with the Event Viewer.
Run Event Viewer
The Event Viewer records everything that happens in your system to the minute details. Using this, you can check what exactly caused the INVALID KERNEL HANDLE error. Once you get a blue screen, the Event Viewer records it by source name Bug check, and its EventID is 1001.
To run the Event Viewer,
- Press the Windows + R key to open Run.
- Type
eventvwr
and press Enter to open Event Viewer. - On the leftmost panel, go to Windows Logs > System.
- Now, on the middle panel, you can see the Level of the error, its date and time, source, and EventID.
- To filter all the events that are caused due to the blue screen, on the rightmost panel, click on Filter Current Log.
- Set Event source as Bug Check. And type 1001 on the <All Event Ids> box.
- Click on OK to only view the events caused by the blue screen.
Once you get a general idea of the reason behind the INVALID KERNEL HANDLE error, you can try fixing the particular issue.
Test Storage Device
Corrupted or bad sectors on the hard drive containing the OS may affect system and driver files, resulting in a blue screen error. Hard drives use physical moving components and are prone to damage. Therefore, we recommend you check your hard drive’s health now and then.
To check the status of your hard drive,
- Press the Windows + R key to open Run.
- Type
cmd
and press Enter to run Command Prompt. - Type
wmic diskdrive get model,status
, and press Enter to get drive status.
If the status indicates OK, your storage device is functional. The status will display Pred fail if your storage device is faulty. Furthermore, if you want to check the partition, you can also run the Check Disk command to scan and repair any bad sectors.
Check Memory Module
Your computer RAM is responsible for storing data that the processor needs when running an application. It also stores OS and driver files once the system boots. If you have faulty memory, the processor may not be able to access the required OS files. This may result in the system going into a blue screen state.
To check if this is true, you can try running the Memory Diagnostic tool. The memory diagnostic tool runs a series of tests to check your RAM sticks are working. Follow the steps mentioned below to run the Memory Diagnostic tool.
- Press the Windows + R key to open Run.
- Type
MdSched
and press Enter to open Windows Memory Diagnostic tool. - Click on Restart now and check for problems (recommended).
Once the PC restarts, it will open a screen where it tests your PC’s memory and simultaneously gives you details about the scan. You can also use the Event Viewer to check the scan report.
If Windows Memory Diagnostic gives you any error, you can use one memory stick at a time to determine the faulty memory. If you are only using one memory stick, you may need to replace the RAM.
Uninstall Recently Installed Application
Applications that have access to hardware components and system files may also be the reason you are getting an INVALID KERNEL HANDLE error. Applications like antivirus software have full access to OS and driver files. Similarly, third-party hardware monitoring applications have some level of access to hardware components.
If your PC starts to suffer from INVALID KERNEL HANDLE ERROR after installing these applications, we recommend you uninstall them immediately.
- Press the Windows + R key to open Run.
- Type
appwiz.cpl
to open Program and Feature. - Select the application you want to uninstall and click on Uninstall.
- Restart your PC once the process is complete.
Run the SFC
SFC or the System File Checker command scans all your system files for corruption and restores them. System files include driver files and OS files located inside C:\Windows\System32.
To run the SFC,
- Press the Windows + R key to open Run.
- Type
cmd
and press Ctrl + Shift + Enter to open Command Prompt as Administrator. - Type
sfc /scannow
and press Enter to run the SFC. The system will now verify all your system files and repair any corruption. - Restart your PC once the verification process is complete.
Update Driver
The device driver acts as an interface between the device and the Operating System. The operating system uses driver files to send and receive data with its respective device. If the driver file is corrupted or outdated, its device will start to misbehave when communicating with the OS. This may result in an INVALID KERNEL HANDLE error.
To fix this, please update your drivers to their latest version.
- Press the Windows + X key and open Device Manager.
- Expand any one of the list items.
- Right-click and select the Update driver.
- Update all the device drivers that have an exclamation sign on their icons.
Run the Application in Compatibility Mode
Older applications that do not support the latest version of Windows cause multiple errors when you try to open them. These errors may be the reason you are getting the blue screen. If your PC runs into an INVALID KERNEL HANDLE error every time you boot a certain application, it can be due to the application not supporting your version of Windows.
To fix this, you can try running the application in compatibility mode. Compatibility mode tricks the application into thinking it is running on a different version of Windows. To run an application on compatibility mode,
- Right-click on the application executable (
.exe
) file and select Properties. - Go to the Compatibility tab.
- Under Compatibility mode, check Run this program in compatibility mode for:
- Select the version of Windows.
- Click on Apply, and then OK.
Update Windows
Microsoft provides its users with frequent Windows updates that improve security and fix bugs and errors. If the INVALID KERNEL HANDLE error is caused due to system-breaking bugs, updating Windows to the latest version should fix the error.
- Press Windows + I to open Windows Settings.
- Go to Windows Update (Security & Updates > Windows Update for Windows 10).
- Click on Check for updates or Download Updates to install any pending updates.