ManagedSearchEngines Policy in Edge

Discussion in 'privacy general' started by Sampei Nihira, May 14, 2024.

  1. Sampei Nihira

    Sampei Nihira Registered Member

    Joined:
    Apr 7, 2013
    Posts:
    3,419
    Location:
    Italy
    There are 2 disturbances in the list of search engines in Edge.

    1 - Bing that cannot be deleted.
    2 - The browser automatically adds more search engines.

    The "Don't add custom search engines" extension is undeveloped and inefficient.

    I used the ManagedSearchEngines policy to eliminate automatic addition of search engines to list and set DuckDuckGo as the only default search engine.

    Code:
    ManagedSearchEngines
    you must enter the registry key as a string value:

    Code:
    [{"allow_search_engine_discovery":false},{"is_default":true,"name":"DuckDuckGo","keyword":"duckduckgo.com","search_url":"https://duckduckgo.com/?q={searchTerms}","suggest_url":"https://www.duckduckgo.com/qbox?query={searchTerms}","image_search_url":"https://www.duckduckgo.com/images/detail/search?iss=sbiupload"}]


    2.png

    Those who want to test to see that other search engines are not added just go to "Ecosia" and obviously search for something.
     
    Last edited: May 14, 2024
  2. nicolaasjan

    nicolaasjan Registered Member

    Joined:
    Sep 23, 2018
    Posts:
    922
    Location:
    The Netherlands
    Thanks!
    It works.
     
  3. Sampei Nihira

    Sampei Nihira Registered Member

    Joined:
    Apr 7, 2013
    Posts:
    3,419
    Location:
    Italy
  4. TairikuOkami

    TairikuOkami Registered Member

    Joined:
    Oct 10, 2005
    Posts:
    3,462
    Location:
    Flat Earth Matrix
    I had a little trouble entering it via CMD, but regconvert from Sordum came to the rescue.
    Code:
    reg add "HKLM\Software\Policies\Microsoft\Edge" /v "ManagedSearchEngines" /t REG_SZ /d "[{\"allow_search_engine_discovery\":false},{\"is_default\":true,\"name\":\"DuckDuckGo\",\"keyword\":\"duckduckgo.com\",\"search_url\":\"https://duckduckgo.com/?q={searchTerms}\",\"suggest_url\":\"https://www.duckduckgo.com/qbox?query={searchTerms}\",\"image_search_url\":\"https://www.duckduckgo.com/images/detail/search?iss=sbiupload\"}]" /f
    Thank you so much @Sampei Nihira , I have been trying to tackle this problem for years and I eventually gave up. Thanks. :thumb:
     
  5. Sampei Nihira

    Sampei Nihira Registered Member

    Joined:
    Apr 7, 2013
    Posts:
    3,419
    Location:
    Italy
  6. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    5,981
    to mention a question from the edge thread and make a very important think clear.

    those here and in that thread are NO policies, only reghacks.
    Where is the difference?
    First to set a GPO (group policy object) you need the group policy editor which is not available in HOME versions (later again). Next is that a policy is set on system startup and/or user login. third, a GPO is controlled regularly, so the engine behind is checking if the policy is still set as wanted and corrects it if not.

    a reghack is nothing of this. a reghack is neither secure nor controlled, it can be overwritten any time without concequences. if you can use the GP editor is wide to use this instead reghacks - to follow.

    the GPO settings are stored elswhere, in non of the following path, those are only "copies"

    then there exist a difference between user settings
    HKEY_CURRENT_USER\SOFTWARE\Policies
    and system policies
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies

    for edge both is possible where user setting override system setting (is more specific).
    except edge update which is only available in HKLM, for reason.

    now the important - HOME builds dont have a GP editor (gpedit.msc) and its not available not installable not plugin-able - in short: it wont work on HOME builds.
    for HOME builds those users can only use reghacks, sadly but it is.

    for the example above, nice to have, thank you. for the detail - it has to be a valid JSON format! in one single line. so if you create such rule in eg notepad++ you need to "compress" it later (json plugin) and insert it into the GPO or reghack. reg-multiline is not usable.

    HTH
     
  7. Sampei Nihira

    Sampei Nihira Registered Member

    Joined:
    Apr 7, 2013
    Posts:
    3,419
    Location:
    Italy
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.