How to Stop Windows From Asking You to Eject the GPU

If you keep seeing a strange “Safely Remove Hardware” prompt for your graphics card on Windows 11, you’re not alone. Windows sometimes misidentifies dedicated GPUs — especially NVIDIA and AMD cards — as removable devices because they use PCIe hot-plug features. That leads to Windows showing the GPU inside the Safely Remove Hardware menu, and in some cases, you may even get notifications telling you to eject it. And yes… Microsoft really thought this was a great idea. Sometimes I wish I was a fly on the wall in their engineering meetings.

The good news is that you can stop Windows from treating your GPU like a USB drive. In this guide, we walk you through the easiest and most reliable methods to hide the GPU from the eject menu and prevent accidental removal prompts on Windows 11.

What You’ll Need

Before we start, all you really need is your Windows 11 PC and administrator access. We’re simply changing how Windows handles PCIe devices. You don’t need to install additional software unless you want to use the optional NVIDIA or AMD tools we mention later.

By adjusting a few device properties or Group Policy settings, we can stop the GPU from appearing in the “Safely Remove Hardware” list and prevent Windows from asking you to eject it.

Why Windows Shows Your GPU as a Removable Device

Windows treats some PCI Express devices as “hot-swappable” if your motherboard supports PCIe hot-plugging. This is a common feature on workstation and server boards, but it sometimes applies to consumer GPUs as well. As a result, the GPU shows up under removable devices in Windows — which is obviously not something you should ever eject.

Fortunately, the fix is simple once you know where to look.

Method 1: Disable Hot-Plug for the GPU in BIOS (Most Reliable Fix)

If your motherboard supports PCIe hot-plugging, you can turn it off in the BIOS to prevent Windows from misclassifying your GPU.

1. Restart your PC and enter BIOS

Press the F2, DEL, or ESC key during boot to enter BIOS setup depending on your motherboard manufacturer.

2. Open Advanced PCIe Settings

Navigate to Advanced, Advanced Settings, or PCIe Configuration depending on your BIOS layout.

3. Disable Hot-Plug for Your GPU Slot

Find the PCIe slot where your GPU is installed and look for:

  • Hot Plug Support
  • PCI Express Hot Plug
  • Removable Device Support

Set it to Disabled.

4. Save and reboot

Press F10 to save changes and restart Windows. Your GPU should no longer appear in the “Safely Remove Hardware” menu.

This method removes the issue at the hardware level, so Windows won’t even consider the GPU removable anymore.

Method 2: Hide the GPU Using Device Manager

If your BIOS doesn’t offer hot-plug options, Device Manager provides a simple workaround.

1. Open Device Manager

Press Windows + X and choose Device Manager.

2. Expand “System devices”

Scroll down until you see the PCI Express Root Port entries.

3. Identify the Port for Your GPU

Right-click a PCI Express Root Port → PropertiesEvents.
If you see references to NVIDIA or AMD graphics devices, you’ve found the right port.

4. Disable Hot-Plug for That Port

Go to the Details tab, then choose Capabilities.
Look for Removable: Yes in the details.

Now switch to the Driver tab and click Disable device.
(You are only disabling the port’s removable behavior, not the GPU itself.)

After restarting, the GPU will no longer appear as a removable device.

Method 3: Use Group Policy to Prevent Removal of PCI Devices

Windows Pro and Enterprise users can enforce a policy that blocks the OS from ejecting crucial hardware.

1. Open Group Policy Editor

Press Windows + R, type gpedit.msc, and press Enter.

2. Navigate to Device Installation Restrictions

Go to:

Computer Configuration  
→ Administrative Templates  
→ System  
→ Device Installation  
→ Device Installation Restrictions

3. Enable “Prevent removal of devices”

Double-click Prevent removal of devices and set it to Enabled.

4. Restart your PC

Windows will now block the GPU (or any PCI device) from being removed.

Method 4: Hide the GPU from the Eject Menu Using Registry Editor

If you’re on Windows 11 Home, this registry tweak achieves a similar effect.

Warning: Editing the registry incorrectly can cause issues. Always create a backup first.

1. Open Registry Editor

Press Windows + R, type regedit, and hit Enter.

2. Navigate to This Key

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\usbstor

3. Add a New DWORD

Right-click the right panel → New → DWORD (32-bit) Value.

Name it:

DisableRemovableDevices

Set its value to:

1

Restart your PC. Windows will stop listing internal devices like GPUs as removable hardware.

Method 5: NVIDIA & AMD Control Panel Tweaks (Optional)

Some users report that GPU “eject” prompts disappear after reinstalling or updating driver packages.

1. Open NVIDIA Control Panel or AMD Adrenalin

Search in the Start Menu and launch your GPU software.

2. Update Your Drivers

Go to the updates section and install the latest drivers.

3. Restart Your PC

Driver updates often reset the removable flag for the GPU.

Wrapping Up

Windows showing your GPU as a removable device can be annoying and confusing, but thankfully it’s easy to fix. By disabling PCIe hot-plug in the BIOS, adjusting the port settings in Device Manager, or using Group Policy or Registry tweaks, you can stop Windows from asking you to eject the GPU and prevent the device from appearing in the Safely Remove Hardware menu.

Once the removable flag is gone, Windows will treat your graphics card like the internal, non-removable hardware it’s supposed to be, and you won’t have to worry about accidental prompts again.

Posted by Arpita

With a background in Computer Science, she is passionate about sharing practical programming tips and tech know-how. From writing clean code to solving everyday tech problems, she breaks down complex topics into approachable guides that help others learn and grow.