How can I install this driver?

允我心安 提交于 2019-12-11 17:26:26

问题


I downloaded the IOCTL sample driver from MSDN. I am trying to run an executable in this example to load the driver from its SYS file, but I get this error when it calls StartService:

StartService failure! Error = 577
Unable to install driver.
ControlService failed!  Error = 1062

577, according to error code documentation, means:

ERROR_INVALID_IMAGE_HASH
577 (0x241)
Windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source.

I don't get why it won't start it up because in Visual Studio I went to the project settings on the driver and set these on it:

Sign Mode -> "Test Sign"

Test Certificate -> I used the "Create Test Certificate" option to create and then select a test certificate.

So what's the problem now? How can I get this driver to install?


回答1:


Starting with Windows Vista 64-bit, Microsoft began requiring signed drivers unless bypassed using boot-time developer options.

There are options for both unsigned drivers (F8 option or attaching a kernel debugger) and test-signed drivers (TESTSIGNING boot configuration). The easiest bypass is to press F8 at boot time and select "Disable Driver Signature Enforcement", which will last until the next boot.



来源:https://stackoverflow.com/questions/24091822/how-can-i-install-this-driver

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!