I'm looking for information on whether or not there is a Windows standard way for accomplishing this?
Essentially we have a vendor who has updated their driver and devices running our software must be updated automatically.
In order to do this, we must uninstall the existing driver first (vendor requirement).
Any guidance on best practices/approach to doing so. Details of why this needs to be done are probably not important. It just needs to be done.
Also a sample would be very helpful.
Thanks
wmic sysdriver where "name=drivernamehere" call delete
The syntax above appears to be incorrect. I tried and always got "delete - Invalid alias verb" I looked up the syntax and came up with the following that appears to work:
wmic sysdriver where name="driver_name" delete
I got instance deletion successful but I have to verify whether this completely removes the driver from the system or not.
WMIC is best choice for accomplishing this via command line.
wmic sysdriver where name="drivernamehere" call delete
devcon.exe is another alternative for batch.
http://support.microsoft.com/kb/311272
EDIT: Use this to get find the correct name
wmic sysdriver get name
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With