Skip to content

Instantly share code, notes, and snippets.

@zeroxia
Created June 27, 2023 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeroxia/71054d134a223deaa190bbc1a36e2176 to your computer and use it in GitHub Desktop.
Save zeroxia/71054d134a223deaa190bbc1a36e2176 to your computer and use it in GitHub Desktop.
Remove zombie software devices
# 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
}
@zeroxia
Copy link
Author

zeroxia commented Jun 27, 2023

西瓜视频 / 鲜时光:

image

Another stupid app "橙子投屏" that dumps dozens of "software devices" to your Windows system.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment