在Internet Explorer中将(Internet Explorer)默认搜索引擎(default search engine)更改为Bing以外的其他搜索引擎非常简单,只需单击几下即可。也就是说,除非您在公司环境中工作并且您的网络管理员(network administrator)已锁定Web 浏览器设置。(web browser)
一些管理员的限制有点过火,强迫人们只使用Bing进行搜索就是一个典型的例子。在本文中,我将向您展示如何修改注册表中的一些设置,以便您可以使用Google作为默认搜索引擎(default search engine)而不是Bing。
如果您的计算机上也禁用了注册表编辑器(registry editor),请务必查看我之前关于如何重新启用注册表编辑器(registry editor)的帖子。值得注意的是,我们将要更改的注册表项(registry keys)对系统来说并不重要,因此如果您搞砸了,您的计算机不会发生任何坏事。
但是,以防万一,请务必先阅读我关于备份和恢复注册表的帖子。这个过程有点技术性,但如果你慢慢地跟着,它不会太难。我在Windows 7、 Windows 8 和Windows 10上对此进行了测试,它在所有三个操作系统上都有效。
(Edit SearchScopes)在注册表中(Registry)编辑IE 的SearchScopes
在 IE 中,您添加到浏览器的每个搜索引擎(search engine)在注册表中称为搜索范围。(search scope)首先(First),在进入注册表之前,我们必须创建一个新的GUID,我们将使用它作为键。听起来很吓人,但请按照以下说明进行操作。
第 1 步(Step 1):通过单击开始(Start)并键入 powershell打开PowerShell 。
在提示符下,只需复制并粘贴(copy and paste)以下命令:
[Guid]::NewGuid()
这将生成一个带有字母和破折号的长数字,如下所示。选择GUID,然后按CTRL + C将其复制到剪贴板。
现在我们必须将其转换为大写,因为注册表在创建密钥时对大小写很挑剔。最简单的方法是打开Word,粘贴文本,选择它,然后选择UPPERCASE。
第 2 步(Step 2):现在让我们通过单击开始并输入(Start and typing)regedit打开注册表编辑(registry editor)器。现在导航到以下键:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\SearchScopes
如果单击SearchScopes ,(hand side)您会在右侧看到几个键。我们感兴趣的主要是DefaultScope。双击它并粘贴我们刚刚创建的新范围 ID。
请注意,您必须在我们生成的GUID周围添加一个左大括号和一个右大括号。
单击确定(Click OK),值应该会更新。既然我们已经配置了默认的(default one)搜索范围(search scope),我们实际上必须去创建新的搜索范围(search scope)。
第 3 步(Step 3):右键单击左侧导航窗格中的(hand navigation pane)SearchScopes键,然后选择新建(New)-键(Key)。
再次将新(Again)GUID的值粘贴为键的名称。同样(Again),确保将大括号添加到 GUID 的前端和(GUID)末尾(front and end)。注册表项现在应该如下图所示:
第4步(Step 4):现在是有趣的部分。我们必须在右窗格中为新的搜索范围(search scope)创建几个新键。因此,首先,选择我们创建的新搜索范围(search scope),您会看到只有一个名为Default的键。
我们必须创建总共五个新密钥。要创建新键,只需右键单击右窗格中的任何白色区域并选择新建(New),然后 为第一个键选择字符串值。(String Value)
您想为新密钥命名为DisplayName,然后按Enter。然后双击新键,即可输入数值信息(value information)。在数值数据框中输入Google ,然后单击确定。(Google)
现在让我们以相同的方式添加其余部分。下面我将列出键名(key name)(粗体)、您必须选择的类型(斜体)和您必须输入的值。
FaviconURL - String Value - http://www.google.com/favicon.ico
ShowSearchSuggestions - DWORD (32-bit) Value - 1
SuggestionsURL - String Value - http://clients5.google.com/complete/search?q={searchTerms}&client=ie8&mw={ie:maxWidth}&sh={ie:sectionHeight}&rh={ie:rowHeight}&inputencoding={inputEncoding}&outputencoding={outputEncoding}
URL - String Value - http://www.google.com/search?q={searchTerms}
完成后,最终条目应如下图所示:
在注册表中设置好所有内容后,继续打开Internet Explorer。您不必重新启动计算机即可使其正常工作。当 IE 打开时,您可能会在底部看到一条消息,说明未知程序要更改您的搜索提供程序(search provider)。继续并单击更改(Change)。
现在,当您在地址栏中(address bar)输入内容时,它会为您提供搜索建议,并在您按Enter时使用(Enter)Google进行搜索。
如果某些东西(something didn)不能正常工作,请确保正确检查所有键,并且GUID对于DefaultScope和(DefaultScope)SearchScopes下的键名称是相同的。此外,请确保GUID在这两种情况下都有左大括号和右大括号。
希望这能帮助您在 IE 中访问Google 搜索(Google search),即使您的系统已锁定。如果您有任何问题,请随时发表评论。享受!
Change the Default Search Engine in IE via Registry
Changing thе defаυlt search enginе to sоmething other than Bing is really easy in Internet Εxplorer and takes just a few clicks. That is, unless you work in a corporate environment and уour network аdministrator has the web browsеr settings locked down.
Some admins go a little overboard with restrictions and forcing people to search using only Bing is a prime example. In this article, I’ll show you how to modify some settings in the registry so that you can use Google as the default search engine instead of Bing.
If the registry editor is disabled on your computer also, make sure to check out my previous post on how to re-enable the registry editor. It’s worth noting that the registry keys we will be altering aren’t critical to the system and therefore if you mess something up, nothing bad should happen to your computer.
However, just in case, make sure to read my post on backing up and restoring the registry first. The procedure is a bit technical, but if you follow along slowly, it’s not too hard. I tested this on Windows 7, Windows 8 and Windows 10 and it worked on all three operating systems.
Edit SearchScopes for IE in Registry
In IE, each search engine you add to the browser is called a search scope in the registry. First, before we get into the registry we have to create a new GUID that we will use as a key. Sounds scary, but just follow the instructions below.
Step 1: Open PowerShell by clicking on Start and typing powershell.
At the prompt, just copy and paste the following command:
[Guid]::NewGuid()
This will generate a long number with letters and dashes like shown below. Select the GUID and then press CTRL + C to copy it to the clipboard.
Now we have to convert this to uppercase because the registry is finicky about the case when creating keys. The easiest way to do this is to open Word, paste the text, select it and then choose UPPERCASE.
Step 2: Now let’s open up the registry editor by clicking on Start and typing in regedit. Now navigate to the following key:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\SearchScopes
If you click on SearchScopes, you’ll see a few keys on the right hand side. The main one we are interested in is DefaultScope. Double-click on that and paste in the new scope ID that we just created.
Note that you have to add an opening curly brace and a closing curly brace around the GUID that we generated.
Click OK and the value should get updated. Now that we configured which search scope is the default one, we actually have to go create the new search scope.
Step 3: Right-click on the SearchScopes key in the left hand navigation pane and choose New – Key.
Again, paste the value of the new GUID as the name of the key. Again, make sure to add the curly bracket to the front and end of the GUID. The registry keys should look like the below image now:
Step 4: Now for the fun part. We have to create a couple of new keys in the right pane for the new search scope. So first, select the new search scope we created and you’ll see there is only one key called Default.
We have to create a total of five new keys. To create a new key, just right-click in any white area in the right-pane and choose New and then pick String Value for the first key.
You want to give your new key a name of DisplayName and then press Enter. Then double-click on the new key and you can enter the value information. Type in Google in the value data box and click OK.
Now let’s add the rest in the same way. Below I will list out the key name (in bold), the type you have to choose (in italics) and the value you have to enter.
FaviconURL - String Value - http://www.google.com/favicon.ico
ShowSearchSuggestions - DWORD (32-bit) Value - 1
SuggestionsURL - String Value - http://clients5.google.com/complete/search?q={searchTerms}&client=ie8&mw={ie:maxWidth}&sh={ie:sectionHeight}&rh={ie:rowHeight}&inputencoding={inputEncoding}&outputencoding={outputEncoding}
URL - String Value - http://www.google.com/search?q={searchTerms}
After you have finished, the final entries should look like the image below:
Once everything is set in the registry, go ahead and open up Internet Explorer. You should not have to restart your computer for this to work. When IE opens, you might see a message at the bottom saying an unknown program wants to change your search provider. Go ahead and click Change.
Now when you type something into the address bar, it should give you search suggestions and should search using Google when you press Enter.
If something didn’t work properly, make sure to check all the keys properly and that the GUID is the same for DefaultScope and for the name of the key under SearchScopes. Also, make sure the GUID has the opening curly and closing curly brackets in both of those instances.
Hopefully, this will help you get access to Google search in IE even if your system is locked down. If you have any questions, feel free to comment. Enjoy!