- You can fix mouse issues, including drag-and-drop not working, without restarting Windows 11.
- PowerShell lets you restart the mouse driver by targeting the active device instance.
On Windows 11 (and 10), you can quickly fix a mouse that becomes unresponsive, glitchy, or (more frustratingly) suddenly won’t let you drag files and folders by restarting its driver without rebooting the computer. This is something that has happened to me multiple times. While a full restart usually resolves the issue, it’s not always practical when you’re in the middle of work and just need a quick fix.
Although most users rely on Device Manager to uninstall and reinstall the device, PowerShell offers a faster and more precise method by targeting the active mouse directly. Using a few commands, you can disable and re-enable the device instance, forcing Windows to reload the driver stack and restore normal functionality in seconds, including the ability to drag and drop items again.
In this guide, I’ll outline the steps to restart the mouse drivers and fix the most common issues, including the ability to drag files and folders around the screen on Windows 11.
Fix dragging and other mouse problems on Windows 11
To fix dragging and other glitches when using the mouse, follow these steps:
-
Open Start on Windows 11.
-
Search for PowerShell, right-click the result, and select the Run as administrator option.
-
Type the following commands to restart the mouse drivers and address common problems, and press Enter:
$mouse = Get-PnpDevice -Class Mouse | Where-Object Status -eq "OK" | Select-Object -First 1 Disable-PnpDevice -InstanceId $mouse.InstanceId -Confirm:$false Start-Sleep -Seconds 2 Enable-PnpDevice -InstanceId $mouse.InstanceId -Confirm:$false

Once you complete the steps, the mouse driver will be restarted, which should fix common problems and glitches, and you should now be able to drag and drop files and folders again.
Command explanation
Here’s the command explanation on how the PowerShell commands restart the active mouse driver on Windows without requiring a full system reboot:
- Identify the active mouse device: The first line retrieves devices in the
Mouseclass and filters for one that is currently active (Status -eq "OK"). It then selects the first available device and stores it in the$mousevariable. - Disable the mouse driver: The second command disables the selected device using its unique
InstanceId. This forces Windows to stop the driver and release the hardware connection. - Wait for Windows to release the device:
Start-Sleep -Seconds 2introduces a short pause to ensure the driver is fully unloaded before it is restarted. - Re-enable the mouse: The final command turns the device back on, forcing Windows to reload the driver stack and restore normal mouse functionality.
I’ve run into this issue many times across different Logitech mice. In the past, I would just restart the computer to fix it, but after testing this PowerShell method, it worked flawlessly every time.
The main reason I prefer this approach over Device Manager is practicality. Using Device Manager requires you to disable and re-enable the mouse manually, but as soon as you disable the driver, the mouse stops responding, making it harder to complete the process. Using PowerShell, the entire sequence runs automatically, avoiding that problem and making the fix much faster and more reliable.
