Pregunta

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

¿Fue útil?

Solución 2

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

Otros consejos

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.

Actually, the correct syntax should be as follows:

wmic sysdriver where(name="driver_name") delete
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top