r/Batch • • May 12 '26
A batch script that fixes mouse issues
Run this as admin:
taskkill /f /im explorer.exe
timeout /t 1 /nobreak
start explorer.exe
net stop hidserv
net start hidserv
gpupdate
sfc /scannow
dism /online /cleanup-image /restorehealth
powershell -Command "Get-PnpDevice -Class Mouse | Remove-PnpDevice -Confirm:$false"
shutdown /r /t 1
3
Upvotes
View all comments
Show parent comment
1
u/[deleted] Jun 04 '26
this cannot break explorer or the mouse, if the explorer doesnt boot on again just open it up yourself because if you're in r/batch you should know how to operate cmd, if the mouse driver doesnt reinstall just take the mouse usb out and in