ngreenwood (10th November 2009), reggiep (19th May 2011)

Set Google as search provider in Google.
I have tried to follow these instructions to make the ADM template to set google as the IE7 search provider.
How to create custom .adm or .admx files to add search providers to the toolbar search box in Internet Explorer 7
This is my code:
But it doesn’t work, I have attached a screenshot of the error message I get when I try to import it into group policy. What have I done wrong please?Code:CLASS USER CATEGORY !!WindowsComponents CATEGORY !!InternetExplorer POLICY !!PopulateSearchProviderList #if version >= 4 SUPPORTED !!SUPPORTED_IE7 #endif EXPLAIN !!IE_Explain_PopulateSearchProviderList KEYNAME "Software\Policies\Microsoft\Internet Explorer\SearchScopes" VALUENAME Version VALUEON NUMERIC <1> ACTIONLISTON KEYNAME "Software\Policies\Microsoft\Internet Explorer\SearchScopes" VALUENAME DefaultScope VALUE "<DEFAULTSUBKEY>" KEYNAME "Software\Policies\Microsoft\Internet Explorer\SearchScopes\<HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\{2BC28A1E-D072-420F-9746-3CE8DC279237}>" VALUENAME DisplayName VALUE "<Google>" VALUENAME URL VALUE "<http://www.google.co.uk/search?hl=en&q={searchTerms}&meta=>" END ACTIONLISTON END POLICY END CATEGORY END CATEGORY CLASS MACHINE CATEGORY !!WindowsComponents CATEGORY !!InternetExplorer <POLICY ... END POLICY Insert the same policy that is under class user> END CATEGORY END CATEGORY [strings] SUPPORTED_IE7="At least Internet Explorer 7.0" WindowsComponents="Windows Components" InternetExplorer="Internet Explorer" PopulateSearchProviderList="Populate List of search providers" IE_Explain_PopulateSearchProviderList="This policy setting will allow you to populate a list of search providers that will be displayed in the Internet Explorer search box.\n\n If you enable this policy setting and if the "Restrict search providers to a specific list of search providers" Group Policy setting is enabled, this list will be the only list that appears in the Internet Explorer drop-down list. If the "Add a specific list of search providers to the user's search provider list" Group Policy setting is enabled, this list will be added to the user's list of search providers.\n\n If you disable this policy setting or do not configure it, users will have complete freedom to create their own search provider list."
Last edited by FN-GM; 25th June 2008 at 02:47 PM.
ngreenwood (10th November 2009), reggiep (19th May 2011)

Zack, why are you doing this with a script? Isn't GPO enough?
There are a couple of errors in your adm file. You need to replace all the <variables> in the template from the Microsoft site e.g. replace <VERSION> with 1, <SUBKEY1> with the guid of the google search provider {2BC28A1E-D072-420F-9746-3CE8DC279237}. You also need to copy the entire policy in the user section and paste it into the machine section.
It should end up looking something like:
Hope that is of some help,Code:CLASS USER CATEGORY !!WindowsComponents CATEGORY !!InternetExplorer POLICY !!PopulateSearchProviderList #if version >= 4 SUPPORTED !!SUPPORTED_IE7 #endif EXPLAIN !!IE_Explain_PopulateSearchProviderList KEYNAME "Software\Policies\Microsoft\Internet Explorer\SearchScopes" VALUENAME Version VALUEON NUMERIC 1 ACTIONLISTON KEYNAME "Software\Policies\Microsoft\Internet Explorer\SearchScopes" VALUENAME DefaultScope VALUE "{2BC28A1E-D072-420F-9746-3CE8DC279237}" KEYNAME "Software\Policies\Microsoft\Internet Explorer\SearchScopes\{2BC28A1E-D072-420F-9746-3CE8DC279237}" VALUENAME DisplayName VALUE "Google" VALUENAME URL VALUE "http://www.google.co.uk/search?hl=en&q={searchTerms}&meta=" END ACTIONLISTON END POLICY END CATEGORY END CATEGORY CLASS MACHINE CATEGORY !!WindowsComponents CATEGORY !!InternetExplorer POLICY !!PopulateSearchProviderList #if version >= 4 SUPPORTED !!SUPPORTED_IE7 #endif EXPLAIN !!IE_Explain_PopulateSearchProviderList KEYNAME "Software\Policies\Microsoft\Internet Explorer\SearchScopes" VALUENAME Version VALUEON NUMERIC 1 ACTIONLISTON KEYNAME "Software\Policies\Microsoft\Internet Explorer\SearchScopes" VALUENAME DefaultScope VALUE "{2BC28A1E-D072-420F-9746-3CE8DC279237}" KEYNAME "Software\Policies\Microsoft\Internet Explorer\SearchScopes\{2BC28A1E-D072-420F-9746-3CE8DC279237}" VALUENAME DisplayName VALUE "Google" VALUENAME URL VALUE "http://www.google.co.uk/search?hl=en&q={searchTerms}&meta=" END ACTIONLISTON END POLICY END CATEGORY END CATEGORY [strings] SUPPORTED_IE7="At least Internet Explorer 7.0" WindowsComponents="Windows Components" InternetExplorer="Internet Explorer" PopulateSearchProviderList="Populate List of search providers" IE_Explain_PopulateSearchProviderList="This policy setting will allow you to populate a list of search providers that will be displayed in the Internet Explorer search box.\n\n If you enable this policy setting and if the "Restrict search providers to a specific list of search providers" Group Policy setting is enabled, this list will be the only list that appears in the Internet Explorer drop-down list. If the "Add a specific list of search providers to the user's search provider list" Group Policy setting is enabled, this list will be added to the user's list of search providers.\n\n If you disable this policy setting or do not configure it, users will have complete freedom to create their own search provider list."
Iain.
Last edited by Iain; 14th May 2008 at 04:32 PM.


Let us know how you get on - would be interested if this works or not.
Does it have to be an ADM? Can you not just deploy the default search using the registry?
Code:Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\SearchScopes] "DefaultScope"=- [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\SearchScopes\{0633EE93-D776-472f-A0FF-E1416B8B2E3A}] [HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\SearchScopes] "DefaultScope"="{D9086831-1612-4AC3-AB8D-8036EE46041D}" "Version"=dword:00000001 [HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\SearchScopes\{D9086831-1612-4AC3-AB8D-8036EE46041D}] "DisplayName"="Google" "URL"="http://www.google.co.uk/search?hl=en&q={searchTerms}&meta=" [HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\SearchUrl] "provider"="" [HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\SearchUrl\g] @="http://www.google.co.uk/search?q=%s" " "="+" "#"="%23" "&"="%26" "?"="%3F" "+"="%2B" "="="%3D" [HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main] "Search Page"="http://www.google.co.uk" "Search Bar"="http://www.google.co.uk/ie" [HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\SearchURL] ""="http://www.google.co.uk/keyword/%s" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Search] "SearchAssistant"="http://www.google.co.uk/ie"

Hi that adm files works a treat, cheers.
Z
Just to resurect this a little (sorry) how do I modify the ADM template so that search suggestions are enabled.
Sorry, does this also work in IE8?

Yes i think it does actually.
Hello Everyone,
Trying to create a ADMX template for this can anyone see where this is going wrong? around line 32, the error that i get is: Expected one of the following possible elements(s), <parent Category>,<seealso>,<keywords>,<supporton> but found <enabledList>
The erros is sounds good but i've been following How to create custom .adm or .admx files to add search providers to the toolbar search box in Internet Explorer 7 exactly.
Code:<?xml version="1.0" encoding="utf-8"?> <policyDefinitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" revision="1.0" schemaVersion="1.0" xmlns="http://www.microsoft.com/GroupPolicy/PolicyDefinitions"> <policyNamespaces> <target prefix="search" namespace="Microsoft.Policies.search" /> <using prefix="inetres" namespace="Microsoft.Policies.InternetExplorer" /> </policyNamespaces> <resources minRequiredRevision="1.0" /> <policies> <policy name="PopulateSearchProviderList_1" class="User" displayName="$(string.PopulateSearchProviderList)" explainText="$(string.IE_Explain_PopulateSearchProviderList)" key="Software\Policies\Microsoft\Internet Explorer\SearchScopes"> <parentCategory ref="inetres:InternetExplorer" /> <supportedOn ref="inetres:SUPPORTED_IE7Vista"/> <enabledList> <item key="Software\Policies\Microsoft\Internet Explorer\SearchScopes" valueName="Version"> <value> <decimal value="2" /> </value> </item> <item key="Software\Policies\Microsoft\Internet Explorer\SearchScopes\{F8BB57CE-3C54-4D8C-B882-0DB38615BAC8}" valueName="DisplayName"> <value> <string>Google</string> </value> </item> <item key="Software\Policies\Microsoft\Internet Explorer\SearchScopes\{F8BB57CE-3C54-4D8C-B882-0DB38615BAC8}" valueName="URL"> <value> <string>http://www.google.com/search?q={searchTerms}&sourceid=ie7&rls=com.microsoft:{language}:{referrer:source}&ie={inputEncoding?}&oe={outputEncoding?}</string> </value> </item> </enabledList> </policy> <policy name="PopulateSearchProviderList_2" class="Machine" displayName="$(string.PopulateSearchProviderList)" explainText="$(string.IE_Explain_PopulateSearchProviderList)" key="Software\Policies\Microsoft\Internet Explorer\SearchScopes"> <parentCategory ref="inetres:InternetExplorer" /> <supportedOn ref="inetres:SUPPORTED_IE7Vista"/> <enabledList> <item key="Software\Policies\Microsoft\Internet Explorer\SearchScopes" valueName="Version"> <value> <decimal value="2" /> </value> </item> <item key="Software\Policies\Microsoft\Internet Explorer\SearchScopes\{F8BB57CE-3C54-4D8C-B882-0DB38615BAC8}" valueName="DisplayName"> <value> <string>Google</string> </value> </item> <item key="Software\Policies\Microsoft\Internet Explorer\SearchScopes\{F8BB57CE-3C54-4D8C-B882-0DB38615BAC8}" valueName="URL"> <value> <string>http://www.google.com/search?q={searchTerms}&sourceid=ie7&rls=com.microsoft:{language}:{referrer:source}&ie={inputEncoding?}&oe={outputEncoding?}</string> </value> </item> </enabledList> </policy> </policies> </policyDefinitions>

Has anyone got this working on IE9 please?
If it's just the default search, can't you just set the reg keys? (Not using 9, but assuming it hasn't changed)
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes
HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\SearchScopes
Should have a setting for unique ID, display name, and URL
Steve
There are currently 1 users browsing this thread. (0 members and 1 guests)