Windows – How to programatically change search provider in IE9 without user prompt

internet-explorer-9windows-registry

I need to force change the search provider programmatically for IE9 to K9SafeSearch. I have this working most of the way, but after the user logs in, they are shown the following prompt to confirm the change:

I cannot seem to find a way to force this confirmation so that the user does not see it. I need to deploy this to about 1000 library PCs, so I'd rather not log back into each one to confirm this. Since these PCs are locked (similar to DeepFreeze), the user would be prompted for this at each logon even if they confirmed the change – hence the need to force the confirmation.

Here are the keys I'm forcing (note that they are also pushed to HKLM):

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes]
    "DefaultScope"="{6107AD2D-B8EA-49F2-B501-464ADEEF4A85}"
    "DoNotAskAgain"=bing.com

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\{6107AD2D-B8EA-49F2-B501-464ADEEF4A85}]
    "DisplayName"="K9 Safe Search"
    "URL"="http://www.k9safesearch.com/search.jsp?r=o&q={searchTerms}"
    "OSDFileURL"="http://www.k9safesearch.com/providers.jsp?p=os"
    "FaviconURL"="http://www.k9safesearch.com/favicon.ico"

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\{6107AD2D-B8EA-49F2-B501-464ADEEF4A85}\Non-Matches]
    "http://www.k9safesearch.com/providers.jsp?p=os"=hex:00,00,00,00,00,00,00,00

Best Answer

There is no way around this. This is to prevent malware from changing search pages from under to you engines that further distribute malware or would direct you to fake sites.

Related Question