Fix 0X0000065A: Function could not be executed in Windows
This error pops up when Windows can't run a specific function — usually a DLL issue, a corrupted system file, or a bad driver. Here's how to fix it step by step.
Cause 1: Missing or corrupted DLL file
This is the most common trigger for error 0X0000065A. You might see it when you launch an old game, a business app like QuickBooks, or even a custom script. A specific .dll file that the program depends on is either gone, damaged, or the wrong version. Windows throws this error because it can't find the function it needs to run.
Step 1: Identify the missing DLL
Open the program that gives you the error. When the error box pops up, look closely at the message — it often names the missing DLL (like msvcp140.dll or vcruntime140.dll). Write that name down.
Step 2: Run System File Checker (SFC)
Even if you know which DLL is missing, start with SFC. It can fix system files automatically.
- Press Windows Key + X and choose Windows Terminal (Admin) or Command Prompt (Admin).
- Type:
sfc /scannow - Hit Enter. The scan will take 10-20 minutes. You should see a progress bar — don't close the window.
- When it finishes, you'll see one of three messages: "Windows Resource Protection did not find any integrity violations", "Windows Resource Protection found corrupt files and successfully repaired them", or "Windows Resource Protection found corrupt files but was unable to fix some of them".
Step 3: Reinstall the missing DLL via Visual C++ Redistributables
If the missing DLL is a Microsoft runtime file (like msvcp140.dll or vcruntime140.dll), the real fix is to install or repair the Visual C++ Redistributable package.
- Go to Microsoft's official download page for the latest Visual C++ Redistributable.
- Download the vc_redist.x64.exe (or x86 if your app is 32-bit).
- Run the installer. Choose Repair if it's already installed, or Install if it's not.
- After it finishes, restart your computer. You should see the Windows logo and then the login screen.
Note: If the missing DLL is from a third-party program, like a game's own .dll file, you'll need to reinstall that specific program. Uninstall it from Settings > Apps > Installed apps, then download a fresh copy from the official source and install it again.
Cause 2: Corrupted system files (SFC/DISM)
Sometimes the error isn't about a single DLL — it's that Windows itself has deeper file corruption. This happens after a bad update, a sudden power loss during a system update, or a failing hard drive. You'll see error 0X0000065A randomly across different programs or even when opening File Explorer.
Step 1: Run DISM first
DISM fixes the system image that SFC relies on. You must run this before SFC if corruption is widespread.
- Open Windows Terminal (Admin) again.
- Type:
DISM /Online /Cleanup-Image /RestoreHealth - Hit Enter. This takes 15-30 minutes. It looks like it's stuck at 20% for a while — that's normal. Let it finish.
- When it says "The restoration operation completed successfully", move to the next step.
Step 2: Run SFC again
Now run SFC the same way I described in Cause 1, Step 2. This time it should find and repair files that were previously unfixable.
Step 3: Restart and test
Reboot your computer. Right-click the Start button and choose Shut down or sign out > Restart. After the restart, try launching the program that gave you the error. If it opens without the error, you're good.
Cause 3: Corrupted or incompatible driver
Less common, but I've seen it — a driver, especially a printer driver or a graphics driver, can cause 0X0000065A. The error might appear when you try to print, or when you plug in a specific USB device. The driver is trying to call a function that Windows can't execute.
Step 1: Check which driver is suspect
Think back: when did the error start? Did you install a new printer, update your GPU driver, or plug in a new webcam? That's your culprit.
Step 2: Roll back the driver
- Press Windows Key + X and select Device Manager.
- Find the device. For a printer, look under Print queues. For a graphics card, look under Display adapters.
- Right-click the device and choose Properties.
- Go to the Driver tab.
- If the Roll Back Driver button is available, click it. Follow the prompts. You should see a confirmation window saying the driver was rolled back.
Step 3: Reinstall the driver from scratch
If the rollback button is grayed out, you need to remove and reinstall the driver.
- In Device Manager, right-click the device and choose Uninstall device.
- Check the box that says Delete the driver software for this device if it appears.
- Click Uninstall.
- Restart your computer. Windows will try to install a generic driver automatically. Go to the manufacturer's website and download the latest driver for your exact model and Windows version (e.g., Windows 11 64-bit). Install it.
Quick-reference summary table
| Cause | Symptoms | Fix |
|---|---|---|
| Missing/corrupted DLL | Error when opening a specific program; DLL name in the error message | Run SFC, repair/install Visual C++ Redistributable, or reinstall the program |
| Corrupted system files | Error across multiple programs or system components | Run DISM, then SFC, then restart |
| Bad driver | Error when using a specific device (printer, GPU, USB) | Roll back or reinstall the driver |
Was this solution helpful?