PowerShell script to remove all devices with 'Unknown' status from Windows Device Manager.
- Windows 10/11
- PowerShell 5.1+
- Administrator privileges
- Download Remove-UnknownDevices.ps1
- Right-click PowerShell/Terminal → Run as Administrator
- Navigate to script directory and run:
.\remove-hidden-devices.ps1The script will:
- Scan for unknown devices
- Display the list for confirmation
- Remove devices after confirmation
- Offer system restart
For complete cleanup, use with Driver Store Explorer:
- Run this script to remove unknown devices
- Use Driver Store Explorer to delete leftover drivers from DriverStore
This combination ensures full removal of both devices and their drivers.
This script permanently removes devices. Review the device list carefully before confirming removal.
===================================
REMOVE UNKNOWN DEVICES
===================================
Scanning for unknown devices...
Found 3 unknown device(s):
→ Generic USB Hub
→ Unknown Device
→ USB Composite Device
===================================
Remove these devices? (Y/N): y
Removing devices...
===================================
REMOVE UNKNOWN DEVICES COMPLETED
===================================
For full registry changes to take effect,
a system restart is recommended.
Restart computer now? (y/n):
MIT License - feel free to use and modify.
Version 1.0 | Report Issues
⭐ If this script helped you, consider giving it a star!