Windows7启动选项允许忽略未签名的驱动程序
我正在学习 Windows 内核模式驱动程序开发。我编写了一个小型测试驱动程序,可以在 VirtualBox 中的 VM 下运行的 Windows 7 32 位 Ultima 版本下成功注册、取消注册、加载和卸载。
我的主机是Windows 7 64位家庭高级版。
该驱动程序专为 64 位编译,无法在 Windows 7 家庭版下加载。我不断收到拒绝通知,指出此版本的 Windows 不允许未签名的驱动程序。
我尝试了两件事:
我使用 F8 启动选项来允许未签名的驱动程序(不起作用)
我以管理员身份运行CMD并执行以下两个命令
bcdedit.exe -set loadoptions DDISABLE_INTEGRITY_CHECKS
bcdedit.exe -set TESTSIGNING ON
并重新启动。我的桌面显示我处于“测试模式”,但我仍然注意到同样的拒绝。
谁能在这里帮助我或解释一下家庭版是否有额外的步骤?
- - { 更新 } - - 在翻阅了大量 MSDN 内容后,我的解决方案似乎是对我创建的驱动程序进行自签名。我下载的DDK似乎没有进行自签名的工具链。我已经下载了WinDDK-7600.16385.1。但奇怪的是,如果我在启动时简单按 F8 并告诉它允许未签名的驱动程序,我的 Windows Ultima Edition 就会愉快地加载我的驱动程序。
I'm learning Windows kernel mode driver development. I've written a small test driver that I can successfully register, unregister, load and unload under Windows 7 32bit Ultima edition running under a VM in VirtualBox.
My host is Windows 7 64bit Home Premium edition.
The driver, compiled for 64 bit, will not load under Windows 7 Home edition. I keep getting a rejection noticed that this version of windows does not allow unsigned drivers.
I've tried two things:
I've used the F8 boot option to allow unsigned drivers (didn't work)
I run a CMD as administrator and execute the following two commands
bcdedit.exe -set loadoptions DDISABLE_INTEGRITY_CHECKS
bcdedit.exe -set TESTSIGNING ON
and rebooted. My desktop shows me in "TestMode" but still I get same rejection noticed.
Can anyone help me out here or explain if there is an additional step for Home edition?
----{ update }----
After pouring through tons of MSDN stuff, it would appear my solution lies in self signing the driver I created. The DDK I downloaded does not appear to have the tool chain to do self signing. I've downloaded WinDDK-7600.16385.1. But what is so strange is that my Windows Ultima Edition happily loads my driver if I simply F8 @ boot time and tell it to allow unsigned drivers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试驱动程序签名强制覆盖。在 64 位版本的 Windows 7 上受支持,并且我看到的报告证实它确实可以在“Home Premium”版本上运行。
它甚至允许您从桌面上删除水印!
You might try the Driver Signature Enforcement Overrider. It's supported on 64-bit versions of Windows 7, and reports that I've seen confirm that it does indeed work on the "Home Premium" edition.
It even allows you to remove the watermark from your desktop!
您不需要使用该工具。只需使用 DDK 中的 Signtool 使用您自己的个人证书测试驱动程序签名即可。
You do not need to use that tool. Just test sign the driver with your own personal certificate with the signtool in the DDK.