Created
August 20, 2019 03:46
-
-
Save changbowen/275544f601fe001daab4758dadae0129 to your computer and use it in GitHub Desktop.
remove devices leftover from a dameware uninstall
This file contains 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
################################ | |
# Script created by Carl Chang # | |
################################ | |
$devcon = 'path\to\devcon_x64.exe' | |
# uninstall dameware products | |
wmic product where "name like '%%dameware%%'" call uninstall | |
# remove left-over devices | |
.$devcon remove DAMEWARE_MIRROR_DEVICE DWD_SMARTCARD *DW0000 | |
# remove driver packages | |
.$devcon dp_enum | Select-String dameware -Context 1,0 | foreach { | |
.$devcon dp_delete $_.Context.PreContext -f | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment