Jump to content

Recommended Posts

Posted

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:

 

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 ""

			KEYNAME "Software\Policies\Microsoft\Internet Explorer\SearchScopes\"
			VALUENAME DisplayName  VALUE ""	
			VALUENAME URL               VALUE ""
		END ACTIONLISTON
	END POLICY
END CATEGORY
END CATEGORY

CLASS MACHINE
CATEGORY !!WindowsComponents
CATEGORY !!InternetExplorer

  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."

 

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?

  • Thanks 2
Posted
Zack, why are you doing this with a script? Isn't GPO enough?

 

If you read the article it is a .adm file to go into group policy.

 

PS: there is no “c” in my name :)

Posted
There are a couple of errors in your adm file. You need to replace all the in the template from the Microsoft site e.g. replace with 1, 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:

 

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."

 

Hope that is of some help,

 

Iain.

 

Thanks i will give that a go.

Posted

Does it have to be an ADM? Can you not just deploy the default search using the registry?

 

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"

  • 1 year later...
  • 4 months later...
  • 6 months later...
Posted

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), ,,, but found

 

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.

 



 
   
   
 
 
 
     
     
					
     
       
           
               
           
       
       
           
               Google
           	
       	
       
           
               http://www.google.com/search?q={searchTerms}&sourceid=ie7&rls=com.microsoft:{language}:{referrer:source}&ie={inputEncoding?}&oe={outputEncoding?}
           
       
     
     
     
     
  
       
	
		
			
		
	
	
		
			Google
			
		
	
		
			http://www.google.com/search?q={searchTerms}&sourceid=ie7&rls=com.microsoft:{language}:{referrer:source}&ie={inputEncoding?}&oe={outputEncoding?}
		
	
	 
      
 

  • 6 months later...
Posted
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...