How to disable and enable hardware in Windows using command prompt

Sometimes bad driver of hardware load one or all cores of CPU by 100%. Some hardware has no other versions of driver and we must use bad driver.

Solution is – disable and enable hardware in Hardware manager. To do this automatic use script:

set HARDWARE_ID="PCI\VEN_8086&DEV_4229&SUBSYS_11018086&REV_61"
devcon disable %HARDWARE_ID%
timeout /t 3
devcon enable %HARDWARE_ID%

I created two files: Stop.bat and Start.bat. First stop bad device when Windows is shutting down, and the second start hardware when windows is starting. This solution help’s me and CPU no longer load by 100%