Microsoft Windows 11 Device Manager - Remove Hidden (Old) Items Updated January 17 2025
This Powershell script will get a list of all hidden devices from Device Manager and remove them. Use this after moving or cloning a drive to a new physically different Computer/Motherboard.

Copy to Clipboard $unknown_devices = Get-PnpDevice | Where-Object{$_.Status -eq 'Unknown'} ForEach( $dev in $unknown_devices ){ pnputil /remove-device $dev.InstanceId }



A more advanced (and untested by me) script is available here:
https://github.com/istvans/scripts/blob/master/removeGhosts.ps1
Search Keywords: After Clone, Move, Migration, Upgrade




©2024 - Some portions of this website are Copyrighted.
Your IP: 18.117.71.102     Referring URL:
Browser: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Terms and Conditions, Privacy Policy, and Security Policy