devcon on windows 7 - remove drivers
I have a problem using devcon.exe
in Windows 7 for the purpose of removing drivers, it worked fine in Windows XP. However, I can't remove the drivers开发者_如何学Python using "dp_delete" and "Remove" in Windows 7.
Anyone has an idea why it might happen?
Thanks.
Download the “Windows Driver Kit (WDK) 7.1.0″ from MS, it is an ISO image several hundreds meg
Using UniversalExtractor (http://legroom.net/software/uniextract), extract the ISO to a temporary directory.
Again using UniversalExtractor, extract the install file "WDK\setuptools_x64fre.msi" to a temporary directory.
In that temporary directory you will find "WinDDK\7600.16385.win7_wdk.100208-1538\tools\devcon\amd64\devcon.exe". This devcon works fine under W7x64 Pro.
Along the way UniversalExtractor will prompt you with some warnings, just click OK.
(source)
Just an idea for another one that have the same issue and can migrate it: you can use wmic instead devcon. Its work better and it's Query Oriented Language (WMI)
精彩评论