Created
June 27, 2023 15:55
-
-
Save zeroxia/71054d134a223deaa190bbc1a36e2176 to your computer and use it in GitHub Desktop.
Remove zombie software devices
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See zombie software devices example in Windows settings app, Bluetooth and other devices: | |
# https://i.imgur.com/HhU6uj2.png | |
## Usage: | |
## Open PowerShell with Administrator privilege. | |
## Run this. | |
## https://stackoverflow.com/questions/60638900/uninstall-device-from-powershell | |
foreach ($dev in (Get-PnpDevice | Where-Object { $_.Name -Like "*我的鲜时光*" } )) { | |
Write-Host 'Name: '$dev.Name' | InstanceId: '$dev.InstanceId | |
&"pnputil" /remove-device $dev.InstanceId | |
&"pnputil" /scan-devices | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
西瓜视频 / 鲜时光:
Another stupid app "橙子投屏" that dumps dozens of "software devices" to your Windows system.