Restart a driver with a script

thalles

Reputable
Dec 10, 2014
11
0
4,510
I recently bought a Surface Book and whenever it hibernates the pen will stop working until a full restart. After disabling and enabling every pen related driver, I discovered that Intel Precise Touch is the culprit (damn, Intel, what's your problem with high quality drivers ?). Restarting it after every hibernate Works, but it's a little time consuming. I searched the internet and discovered a few tutorials, but I lack the knowlegde to follow them. Could someone explain, please, how could I make a script that, when double clicked, restarts the driver ? Here is the Hardware ID's and Class of the driver (aparently they are needed):

PCI\VEN_8086&DEV_9D3E&SUBSYS_00000000&REV_21
PCI\VEN_8086&DEV_9D3E&SUBSYS_00000000
PCI\VEN_8086&DEV_9D3E&REV_21
PCI\VEN_8086&DEV_9D3E
PCI\VEN_8086&DEV_9D3E&CC_078000
PCI\VEN_8086&DEV_9D3E&CC_0780

HIDClass
 
Solution
Hi, NirSoft's freeware [DevManView] (DMV) allows you to disable and enable drivers from the command line. Note that there are downloads for both the 32-bit and 64-bit version. Use the same "bit" as your Windows. You could create a simple batch file that disables and re-enables the drivers with DMV.

I'm not sure if this will work or not, you really just have to test it out and see what happens... but here is an example of what I would do.

First download DMV and place it a folder. Open notepad, paste in the below code and then save the file as ResetDrivers.bat when done. Save the BAT file in the same folder where DMV is located.

@echo off
DevManView /disable_enable "PCI\VEN_8086&DEV_9D3E&SUBSYS_00000000&REV_21"
DevManView...
Hi, NirSoft's freeware [DevManView] (DMV) allows you to disable and enable drivers from the command line. Note that there are downloads for both the 32-bit and 64-bit version. Use the same "bit" as your Windows. You could create a simple batch file that disables and re-enables the drivers with DMV.

I'm not sure if this will work or not, you really just have to test it out and see what happens... but here is an example of what I would do.

First download DMV and place it a folder. Open notepad, paste in the below code and then save the file as ResetDrivers.bat when done. Save the BAT file in the same folder where DMV is located.

@echo off
DevManView /disable_enable "PCI\VEN_8086&DEV_9D3E&SUBSYS_00000000&REV_21"
DevManView /disable_enable "PCI\VEN_8086&DEV_9D3E&SUBSYS_00000000"
DevManView /disable_enable "PCI\VEN_8086&DEV_9D3E&REV_21"
DevManView /disable_enable "PCI\VEN_8086&DEV_9D3E"
DevManView /disable_enable "PCI\VEN_8086&DEV_9D3E&CC_078000"
DevManView /disable_enable "PCI\VEN_8086&DEV_9D3E&CC_0780"
 
Solution
thank you very much. After doing what you said, it wasn't working. After I checked the Readme file, I discovered that the Device name should be used. On DevManView I copied and than pasted the device name and now it's all good 😀.

@echo off
DevManView /disable_enable "Intel(R) Precise Touch Device"

Up above there is what I used to make it work.
Again, thank you very much, it will save me a lot of time, especially on classes where I have limited time to copy what the Teacher is saying that moment. Now, I just need to convince the OneNote team that the camera app must be improved....
 
Great! I'm glad you got it figured out.

I assumed you could use the "Device Instance ID" because of this line on the DevManView page:
You can also specify the value displayed in the Device Instance ID column, for example: DevManView.exe /enable "USBSTOR\Disk&Ven_WD&Prod_2500BMV_External&Rev_1.05\584953930578345789&0".

I also didn't know the device name. I guess the page is wrong or something else happened.
^ Making excuses for my failure. :)

Anyway, your batch file is better than the one I provided and will help others later on. I'm glad you got it working.
 
No problem, you provided a free answer to someone who doesn't know programming and would have to keep restarting the notebook every single time. Thank you very much