TechBuzzPro

Fix NVIDIA Code 45 Error on Windows 11 – Step‑by‑Step Guide

· 5 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can fix NVIDIA Code 45 on Windows 11 by reinstalling or updating the driver and clearing any corrupted driver files.

What You'll Need

  • A functional internet connection to download the latest driver.
  • Administrator rights on the Windows 11 PC.
  • The official NVIDIA driver for your specific GPU model (downloaded from nvidia.com).
  • Optional but recommended: a USB drive or external storage in case you need to transfer files.
  • Patience – the process may involve a couple of restarts.

Step-by-Step

  1. Restart your computer. A simple reboot often clears temporary driver caches that trigger Code 45.
  2. Open Settings (Windows + I) → Windows Update. Click Check for updates. If Windows offers an NVIDIA driver, install it and restart. If the error persists, continue.
  3. Open Device Manager (right‑click the Start button → Device Manager). Expand Display adapters, right‑click your NVIDIA GPU, and select Uninstall device. In the confirmation dialog, tick Delete the driver software for this device if the option appears, then click Uninstall.
  4. After the uninstall finishes, go to Settings → Apps → Installed apps and look for any remaining entries that start with "NVIDIA" (for example, NVIDIA Control Panel, NVIDIA GeForce Experience). Uninstall each of them.
  5. Download the latest WHQL driver for your GPU from the official NVIDIA website. Choose the exact product series and Windows 11 64‑bit version, then click Download.
  6. Run the downloaded installer. When the setup screen appears, select Custom (Advanced) installation.
  7. Check the box that says Perform a clean installation. This forces the installer to remove any leftover files and registry entries before installing the new driver.
  8. Proceed with the installation and allow the system to reboot when prompted.
  9. After reboot, open Device Manager again and verify that the NVIDIA GPU now shows a green check mark under Display adapters. No yellow triangle means Code 45 is resolved.
  10. If the error still appears, clear the driver store manually. Open an elevated Command Prompt (right‑click Start → Windows Terminal (Admin)). Run the following commands one after another:
    pnputil /enum-drivers | findstr /i "nvidia"
    This lists all NVIDIA driver packages. Note the published name (e.g., oem12.inf). Then delete each entry with:
    pnputil /delete-driver oemXX.inf /uninstall /force
    Replace "oemXX.inf" with the actual name you recorded. This removes stale driver packages that can cause Code 45.
  11. Finally, reinstall the driver one more time using the same clean‑install method described earlier. Restart once more and verify the device status.

Common Mistakes

Skipping the "Perform a clean installation" checkbox is a frequent error; it leaves old files that can still trigger Code 45. Another mistake is trying to install a driver meant for Windows 10 without checking the Windows 11 compatibility note on the NVIDIA download page. Installing a beta or "Game Ready" driver when a stable release is available can also re‑introduce the problem. Finally, using third‑party driver cleaners that are not officially endorsed may delete essential system files, leading to further instability.

Tips

  • Always download drivers directly from nvidia.com. Third‑party sites may bundle unwanted software.
  • If you have a dual‑GPU system (integrated + NVIDIA), make sure the integrated graphics driver is also up to date, as conflicts can sometimes surface as Code 45.
  • Keep a copy of the previously working driver version. If the newest driver re‑introduces issues, you can roll back by reinstalling the older version.
  • Disable fast startup (Control Panel → Power Options → Choose what the power buttons do → Change settings that are currently unavailable → uncheck "Turn on fast startup"). Fast startup can prevent the driver cleanup from completing fully.
  • Run Windows 11’s built‑in troubleshooter: Settings → System → Troubleshoot → Other troubleshooters → "Video playback" or "Hardware and Devices". It can automatically detect and fix simple driver registration problems.

Troubleshooting

If the steps above do not resolve Code 45, follow this escalation path:

  1. Check Windows Event Viewer. Open Event Viewer (Windows + X → Event Viewer) and navigate to Windows Logs → System. Look for entries with source "Service Control Manager" or "DriverFrameworks-UserMode" around the time you attempted the driver install. Errors may point to a specific file that is locked.
  2. Boot into Safe Mode. Restart, hold Shift while clicking Restart, then choose Troubleshoot → Advanced options → Startup Settings → Restart. Press 4 to boot into Safe Mode. In Safe Mode, repeat the clean uninstall and reinstall steps. Safe Mode prevents other services from holding driver files.
  3. Temporarily disable security software. Some antivirus programs lock driver files during installation. Disable them briefly, reinstall the driver, then re‑enable protection.
  4. Verify hardware integrity. Use the built‑in Windows Memory Diagnostic (type "mdsched" in the Run dialog) and run a GPU stress test (e.g., FurMark) after the driver installs. If the GPU hardware is failing, Windows may continuously report Code 45.
  5. Contact NVIDIA Support. Provide them with the driver version, GPU model, and the exact error code. They can supply a specific INF file or a hot‑fix if the issue is known.

Frequently Asked Questions

What does NVIDIA Code 45 mean?

Code 45 indicates that Windows cannot find the driver for the device. It usually means the driver is missing, corrupted, or not properly registered.

Do I need to uninstall GeForce Experience?

Uninstalling GeForce Experience is optional. The core graphics driver can be installed without it, and removing it can sometimes eliminate conflicting services.

Can Windows Update install the correct driver automatically?

Windows Update may offer a generic driver that works, but it often lags behind NVIDIA’s latest release. For Code 45, using the official NVIDIA package is more reliable.

Will a clean install erase my game settings?

No. The clean‑install option only removes driver files and registry entries. Game configuration files stored in your Documents or AppData folders remain untouched.

Is it safe to delete driver packages with pnputil?

Yes, as long as you delete only the NVIDIA packages listed by the previous pnputil query. Deleting unrelated drivers can cause other hardware to stop working.

My laptop has Optimus; does Code 45 affect the integrated GPU?

Optimized systems use both Intel/AMD integrated graphics and the NVIDIA GPU. Code 45 usually refers to the NVIDIA side. Updating both drivers ensures smooth switching.