简体   繁体   English

Windows注册表项以防止自动安装驱动程序?

[英]Windows registry key to prevent automatic drivers installation?

I'm looking for a simple method to prevent Windows Update from installing drivers automatically. 我正在寻找一种简单的方法来阻止Windows Update自动安装驱动程序。 Exactly these steps: http://support.microsoft.com/kb/2500967 Is there any method to do these steps just by modifying registry keys? 正是这些步骤: http//support.microsoft.com/kb/2500967是否有任何方法只需通过修改注册表项来执行这些步骤? Or even by doing it with help of a simple bat file? 或者甚至通过简单的bat文件帮助它?

I've just found an answer. 我刚刚找到了答案。 The key I was looking for is located here: 我要找的钥匙位于:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching]
"SearchOrderConfig"=dword:00000000

To add this values to our registry, we can use that command in our batch file: 要将此值添加到我们的注册表,我们可以在批处理文件中使用该命令:

REGEDIT /S NameOfOurRegFile.reg

I don't know of a registry key, but why not change the windows update to download, but not install. 我不知道注册表项,但为什么不将Windows更新更改为下载,而不是安装。 Then you can review the updates and use right-click-hide to hide the driver updates. 然后,您可以查看更新并使用右键单击隐藏来隐藏驱动程序更新。

I like to see the driver updates because that lets me know that I might want to go to the vendor site to look at the real driver info and decide if I need it or not. 我喜欢看到驱动程序更新,因为这让我知道我可能想去供应商网站查看真实的驱动程序信息并决定我是否需要它。 I then only install the driver (from the vendors site) if there are changes I need. 然后,如果我需要更改,我只安装驱动程序(来自供应商网站)。

And since I have hidden it in update, I don't get bothered again until a new driver comes out. 由于我已将其隐藏在更新中,因此在新驱动程序出现之前我不会再受到打扰。

Just a thought (vs. hacking your registry.) 只是一个想法(与黑客入侵你的注册表。)

One other consideration. 另一个考虑因素。 In some cases, a registry hack might have some side consequences that confound you late when you can't figure out why something you thought should work, doesn't. 在某些情况下,一个注册表黑客可能会有一些副作用,当你无法弄清楚为什么你认为应该有用的东西时,这会让你感到困惑。 Most support options don't consider registry hacks when trying to figure out why something doesn't work... 在试图弄清楚为什么某些东西不起作用时,大多数支持选项都不考虑注册表黑客攻击......

I can't comment, so here are some things to consider. 我无法评论,所以这里有一些事情需要考虑。 What you want to do will possibly look very much like a virus that wants to prevent things from being fixed. 您想要做的事情可能看起来非常像一种想要防止事情被修复的病毒。 So if you do find a way, I strongly encourage you to test it with a number of AV apps - and then register it with them so they don't add it later. 因此,如果您确实找到了一种方法,我强烈建议您使用多个AV应用程序进行测试 - 然后将它们注册,以便以后不再添加。

You do have an option to check the version of the drivers in use for given hardware items. 您可以选择检查给定硬件项目使用的驱动程序的版本。 Then, if your app sees a new driver, it can at least warn the user that a new driver was installed (and log that fact) and to roll the update back if they have problems. 然后,如果您的应用程序看到一个新驱动程序,它至少可以警告用户安装了一个新驱动程序(并记录该事实),并在它们出现问题时回滚更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM