Clicking on a web search result in Cortana would always launch Microsoft Edge regardless of what your default browser is. However, you can configure Cortana web search links to open with your default web browser. Additionally, you can automatically redirect the search query to Google search instead of Bing.
In April 2018, Microsoft announced that Edge would be the browser that would launch when searching from Cortana, no matter what your default web browser or
https protocol association setting is.
While the user interface doesn’t have an option to change the search engine or browser, there is still a way to make Cortana search using Google instead of Bing, using the new
microsoft-edge: URL protocol.
Make Cortana Search Using the Default Browser & and Search with Google instead of Bing
- Option 1 uses the EdgeDeflector tool. It redirects Cortana web searches to your default browser.
- Option 2 uses a custom script which redirects Cortana web searches to your default browser and changes Bing URL to Google Search.
Option 1: Using EdgeDeflector utility
EdgeDeflector is a small helper application that redirects Cortana search URLs to the default web browser. It registers itself as a
microsoft-edge: URL protocol handler in the registry. EdgeDeflector doesn’t have a UI. The program runs only when you click on Cortana web search results, and doesn’t run in the background permanently.
- Download EdgeDeflector and install it.
- After you install the program, do a Cortana web search. Click on a search result to see the Open with dialog below:
- Select EdgeDeflector from the list, select click Always use this app and click OK.
EdgeDeflector is now the default handler for microsoft-edge: URL protocol.
Note: This program doesn’t redirect Bing to Google search. It just passes on the link to your default browser instead of Microsoft Edge. If you want to redirect to Google search as well as use the default web browser, see Method 2 (using script) below.
For a detailed note on how the program works, check out the author’s blog post Open links force-opened in Microsoft Edge in your default browser | Ctrl blog
This method uses the same idea as EdgeDeflector. The script registers as the handler for
microsoft-edge: protocol, just like how EdgeDeflector works. The script below has been tested in Windows 10 v1809 & v1903.
If you’re using Windows 10 build v1803 and lower, make sure to turn off the Optimize taskbar web search results for screen readers option in Microsoft Edge. Turning off that option would cause
microsoft-edge: protocol to be used when clicking Cortana web search results.
By associating our custom script ↓
microsoft-edge: URL protocol, you can redirect the results to your default browser, and use Google search engine (if you prefer) instead of Bing.
- Download cortana2google.zip, unzip and extract the contents to a folder.
- Double-click Cortana2Google.reg to run it.
- Move the file Cortana2Google.vbs to your Windows directory.
- Type a search phrase in Cortana box and click on a web search result. The following “How do you want to open this?” dialog would appear for the first time.
- Select “Microsoft Windows Based Script Host”, enable “Always use this app” option and click OK.
microsoft-edge: URL protocol is now the handled by the script.
Cortana results would be redirected to your default browser and use Google search engine instead of Bing.
By default, the Cortana search query looks like this:
Our custom script ↓
Cortana2Google.vbs extracts only the search query from the URL and redirects to Google & default browser.
'Make Cortana Use Default Browser and Google Search to open search results 'Created by Ramesh Srinivasan for Winhelponline.com 'Updated on June 14 2019 - Tested on Windows 10 v1903 'Cortana2Google.vbs If wscript.arguments.count = 0 Then Wscript.Quit Set WshShell = WScript.CreateObject("WScript.Shell") sArgs = wscript.arguments(0) 'Check if the URL comes from Cortana search action If lcase(instr(sArgs, "&url=")) 0 Then sBingURL = Split (sArgs, "&url=") sGoglURL = Split (URLDecode (sBingURL(1)), "&") sGoglURL(0) = Replace (sGoglURL(0), "bing.com", "google.com") If lcase (left (sGoglURL(0) , 8) = "https://") Then WshShell.run sGoglURL(0) Else 'Check if user pressed F1 help button or passed a non-Cortana web link If Instr(sArgs, "go.microsoft.com/fwlink") 0 Or Left(sArgs, 19) = "microsoft-edge:http" Then WshShell.Run Replace(wscript.arguments(0),"microsoft-edge:", "") WScript.Quit Else WScript.echo "Can't open the link. The following URL seems invalid:" & _ vbCrLf & vbcrlf & sArgs End If End If Function URLDecode (sInput) If IsNull(sInput) Then URLDecode = "" Exit Function End If URLDecode = sInput URLDecode = Replace(URLDecode, "%25", "%") URLDecode = Replace(URLDecode, "%20", " ") URLDecode = Replace(URLDecode, "%22", """") URLDecode = Replace(URLDecode, "%26", "&") URLDecode = Replace(URLDecode, "%27", "'") URLDecode = Replace(URLDecode, "%2F", "/") URLDecode = Replace(URLDecode, "%3F", "?") URLDecode = Replace(URLDecode, "%5C", "\") URLDecode = Replace(URLDecode, "%3A", ":") URLDecode = Replace(URLDecode, "%3D", "=") URLDecode = Replace(URLDecode, "%2B", "+") End Function
Contents of the REG file
While the REG file adds contents to the current user registry keys only, you need administrator privileges to initially move the script file to C:\Windows. That’s optional as well. If you decide to host the script within your user profile if you’re a standard user, then update the script file path in the REG file and then apply it.
Windows Registry Editor Version 5.00 ;Make Cortana Use Default Browser and Google Search to open search results ;Created by Ramesh Srinivasan for Winhelponline.com ;Created on Oct 14 2016 ;Modified on May 12 2019 ;Works on Windows 10 v1809 ;Cortana2Google.reg ;http://www.winhelponline.com/blog/cortana-web-results-google-search-default-browser/ [HKEY_CURRENT_USER\Software\Clients\StartmenuInternet\Cortana2Google] @="Cortana2Google" [HKEY_CURRENT_USER\Software\Clients\StartmenuInternet\Cortana2Google\Capabilities] "ApplicationDescription"="A custom script to redirect Cortana search results to default browser." "ApplicationName"="Cortana2Google" [HKEY_CURRENT_USER\Software\Clients\StartmenuInternet\Cortana2Google\Capabilities\URLAssociations] "microsoft-edge"="Cortana2Google" [HKEY_CURRENT_USER\Software\Classes\Cortana2Google\shell\open\command] @="wscript.exe c:\\windows\\cortana2google.vbs %1" [-HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\microsoft-edge\UserChoice] [HKEY_CURRENT_USER\Software\RegisteredApplications] "Cortana2Google"="Software\\Clients\\StartmenuInternet\\Cortana2Google\\Capabilities"
Microsoft doesn’t recommend any kind of web search redirection methods though, as that would disturb the personalized and integrated search experience in Windows 10, delivered by Cortana + Edge + Bing combo. Never mind!
That’s it! You’ve made Cortana use your default web browser (instead of Edge) and search with Google instead of Bing search. Hope you liked these script tweaks!
One small request: If you liked this post, please share this?One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
- Pin it!
- Share it to your favorite blog + Facebook, Reddit
- Tweet it!
About the author
Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and he has been a Microsoft Most Valuable Professional (MVP) for 10 consecutive years from 2003 to 2012.