How to reset mouse window 11 in powershell: Run the command Get-PnpDevice -Class 'Mouse' | Disable-PnpDevice -Confirm:$false; Get-PnpDevice -Class 'Mouse' | Enable-PnpDevice -Confirm:$false in an elevated terminal to restart the driver in under 10 seconds. This immediately reloads your pointer without needing a system reboot.
Windows manages your pointing hardware through the Plug and Play subsystem. Running the restart command forces the operating system to drop the current device stack and reload the default pointer configuration immediately.
If your cursor is frozen, press Win + X and hit A to launch the terminal with administrator rights. If you open PowerShell without admin rights, the system blocks device changes. This guide isn’t for people using damaged hardware or broken cables, as software resets won’t fix physical faults.
Resetting Mouse Drivers in Powershell

Follow these commands to refresh your pointer stack.
- Press Win + R, type
powershell, and press Ctrl + Shift + Enter to launch PowerShell as an administrator. - Type
Get-PnpDevice -Class 'Mouse'and press Enter to display every connected pointer device and its status. - Run
Disable-PnpDevice -InstanceId 'YOUR_ID' -Confirm:$false, swapping YOUR_ID with the exact device ID shown in step 2.Tip: If you can’t navigate easily, skip specific IDs and target the entire class using the Microsoft Learn PnP device documentation parameters.
- Run
Enable-PnpDevice -InstanceId 'YOUR_ID' -Confirm:$falseafter waiting 3 seconds. - If the cursor stays frozen, type
Restart-Service -Name "TabletInputService" -Forceand press Enter to clear touch and pen conflicts.Tip: If your cursor works, use your mouse; if it doesn’t, navigate strictly with your keyboard using Tab and arrow keys.
- Type
shutdown /r /t 0and press Enter if the driver fails to wake up, which hands the task over to a full Windows restart.
How Long It Takes

The driver restart completes almost instantly once the commands execute in PowerShell.
| Situation | How long | What changes it | What to watch for |
|---|---|---|---|
| Standard USB mouse | 5 to 10 seconds | System background load | Cursor reappearing in screen center |
| Bluetooth mouse | 15 to 30 seconds | Wireless pairing speed | Flashing LED pairing light on mouse |
| Precision laptop touchpad | 10 to 20 seconds | OEM bus driver response | Touchpad gestures responding again |
If PowerShell freezes for over 60 seconds during this command, press Ctrl + C to cancel the process and check your physical cable.
How to Tell When It’s Done

A successful reset shows a clean prompt line with no red error text. Your cursor jumps slightly or appears in the center of the display as the Windows Desktop Window Manager detects the re-enabled hardware. Test the result by pressing the right-click button on the desktop; if the context menu appears within 1 second, the pointer pipeline is working. This varies by model — check the label on custom gaming mice, because proprietary software like Razer Synapse might need its own manual profile reload after Windows finishes.
Mistakes That Ruin It
- Running without administrator rights: The command fails immediately with an “Access Denied” error because normal user accounts can’t toggle hardware states. Open PowerShell using administrative credentials before entering hardware commands.
- Typing the wrong Instance ID: Windows will return an error stating the device doesn’t exist, leaving the broken pointer frozen. Copy the exact string from the output list instead of typing it by hand.
- Disabling without an enable line: Your mouse turns off completely, leaving you stranded without a working pointer. Paste both commands on a single line separated by a semicolon so they run together.
Can Powershell Fix a Jumpy Mouse Pointer?
No, jumpy tracking usually stems from dirt on the optical sensor or a bad surface. PowerShell only restarts the software driver stack. Clean the optical lens with a dry cotton swab before attempting driver commands.
Is It Safe to Disable the Mouse Class Completely?
Yes, it’s safe because Windows re-enables the default driver when requested or during a reboot. You run the trade-off of losing mouse access until you run the enable command via keyboard navigation.
Why Does Powershell Say Access Is Denied?
You launched the terminal in standard user mode instead of elevated mode. Close the window, press Win + X, select Terminal (Admin), and run the command again.
What Happens If the Pointer Doesn’t Return?
Unplug the USB connector, wait 5 seconds, and plug it into a different USB port. This triggers a fresh hardware scan that bypasses the need for further PowerShell inputs.
Can This Command Damage a Laptop Touchpad?
No, these commands only tell the Windows Plug and Play system to power-cycle the device state. They don’t write firmware or alter electrical voltages going to the hardware.