How to uninstall the driver by using command prompt in Win 10?
command-prompt
Solution
In order to remove driver package you need to run at first pnputil -e After that you need to find the oem.inf of the package. and the uninstall will be pnputil -f -d oem#.inf
Problem
Every time, I try to uninstall the graphic card. I have to open Device Manager and go to Display adapter to click the uninstall the driver thing. So I want to make it be automated. But I am stuck on how to uninstall the driver from cmd. When I type pnputil -d -f name.inf. (or pnputil -f -d name.inf, I forgot which one is correct but I tried both) It always failed and outputted "pnputil deleting drive package failed: devices are presently installed using the specified INF" Does anyone know how can I resolve this problem?