What's going on with 0X800F021B?
You're in Device Manager, trying to disable or uninstall a device—maybe a USB webcam, an audio interface, or a Bluetooth adapter—and Windows throws back SPAPI_E_DEVICE_INTERFACE_ACTIVE (code 0X800F021B). The exact message says: The operation cannot be performed because the device interface is currently active.
This means something on your PC is currently talking to that device. Could be a driver, an app, or Windows itself. The fix is to stop whatever's using it. Here's how, starting with the quickest thing.
1. The 30-second fix: Unplug and reconnect the device
This sounds almost too simple. But it works more often than you'd think. When you unplug a USB device, Windows releases its interface. Plugging it back in resets the state.
- Physically disconnect the device from your computer. If it's a USB cable, pull it out. If it's a built-in device like an internal Bluetooth adapter, skip to step 2.
- Wait 10 seconds.
- Reconnect the device.
- Open Device Manager again (press Win + X and select Device Manager).
- Try disabling or uninstalling the device again. After you reconnect, you should see the error is gone and the device shows up as active but manageable.
If that didn't do it, the device's driver is still holding on. Move to the next step.
2. The moderate fix: Kill the process using the device
Some apps don't let go of a device gracefully. Audio software, video capture tools, and virtual machines are the usual suspects. Here's how to find and stop them.
- Press Ctrl + Shift + Esc to open Task Manager.
- Look under the Processes tab for anything that might use your device. For an audio interface, check for apps like VoiceMeeter, DAWs (Ableton, FL Studio), or Zoom. For a webcam, look for Camera, OBS Studio, or Teams.
- Select the app and click End task. Do this for every app that could touch the device.
- Now go back to Device Manager. Right-click the device and select Disable device or Uninstall device.
Still getting the error? That means a background service or a lower-level driver component is holding it. We'll handle that next.
3. The advanced fix: Force-stop the device through the command line
If the first two steps didn't work, the device interface is stuck. You need to manually tell Windows to stop it. This uses a built-in tool called pnputil and the Device Console (devcon).
Note: devcon isn't included in Windows by default. You'll need to download it from Microsoft. It's part of the Windows Driver Kit. But don't worry—you can use a simpler built-in alternative that's almost as good: pnputil.
Step 3a: Identify the device instance ID
- Open Device Manager.
- Right-click the problematic device and select Properties.
- Go to the Details tab.
- In the Property dropdown, select Device instance path. You'll see something like
USB\VID_1234&PID_5678\123456789. Copy that full string (right-click it, choose Copy).
Step 3b: Disable the device using pnputil
- Open Command Prompt as Administrator. Press Win + X, then select Windows Terminal (Admin) or Command Prompt (Admin).
- Type this command and press Enter:
pnputil /disable-device "Device_Instance_ID"
ReplaceDevice_Instance_IDwith the string you copied. Keep the quotes. Example:pnputil /disable-device "USB\VID_1234&PID_5678\123456789" - After you press Enter, you should see a message like: Device was successfully disabled.
If you get an access denied error, you're not running as Administrator. Close and reopen the terminal with admin rights.
Step 3c: If pnputil fails, reboot in Safe Mode
Sometimes the driver is loaded at boot and won't release. Booting into Safe Mode loads only the essential drivers, so the device might not be active.
- Press Win + R, type
msconfig, and press Enter. - In the System Configuration window, go to the Boot tab.
- Check Safe boot, then select Minimal.
- Click OK and restart your PC. After it boots, you'll be in Safe Mode.
- Open Device Manager (it still works in Safe Mode). Right-click the device and select Disable device or Uninstall device.
- After you do that, open
msconfigagain, uncheck Safe boot, and restart normally.
Heads up: In Safe Mode, some hardware might not appear at all. If the device isn't listed, try the
pnputil /disable-devicecommand from Safe Mode instead. That usually works.
Why this happens in the first place
The SPAPI_E_DEVICE_INTERFACE_ACTIVE error is Windows being cautious. It won't let you disable a device that has open handles—meaning software that's actively sending or receiving data through it. This is common with:
- USB audio interfaces (Focusrite, Behringer, etc.) when audio software is still running.
- Virtual COM ports from Arduino or USB-to-serial adapters when a terminal program is still connected.
- Built-in cameras held open by the Windows Camera app or browser.
If you're a developer testing drivers, you'll see this a lot. The real fix is to close all handles before attempting the disable. If you can't find the handle, the Safe Mode trick is your nuclear option.
Try the steps in order. You'll likely be done at step 1 or 2. Don't jump to Safe Mode unless you have to—it's overkill for most people.