Set default search engine: registry value SetDefaultSearchEngineUserHKCU\Software\Policies\Microsoft\MicrosoftEdge\OpenSearch
- Policy ID
- SetDefaultSearchEngine
- Scope
- Computer Configuration, User Configuration
- Supported on
- Microsoft Edge on Windows 10, Version 1703 or later
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Windows Components › Microsoft Edge
Registry
SetDefaultSearchEngine
REG_SZUserComputer…\Software\Policies\Microsoft\MicrosoftEdge\OpenSearchHKCU\Software\Policies\Microsoft\MicrosoftEdge\OpenSearch Current key
HKLM\Software\Policies\Microsoft\MicrosoftEdge\OpenSearch
HKLM\Software\Policies\Microsoft\MicrosoftEdge\OpenSearch
- Enabled value
- Depends on the option value
- Element
- Use this format to specify the link you wish to add: <https://fabrikam.com/opensearch.xml>
- Value type
- REG_SZ
- Required
- true
Apply with .reg · CMD · PowerShell
UserPer-account setting
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\MicrosoftEdge\OpenSearch] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "SetDefaultSearchEngine"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKCU\Software\Policies\Microsoft\MicrosoftEdge\OpenSearch" /v "SetDefaultSearchEngine" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data New-Item -Path 'HKCU:\Software\Policies\Microsoft\MicrosoftEdge\OpenSearch' -Force | Out-Null New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\MicrosoftEdge\OpenSearch' -Name 'SetDefaultSearchEngine' -PropertyType String -Value '<enter value>' -Force | Out-Null
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\MicrosoftEdge\OpenSearch] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "SetDefaultSearchEngine"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKLM\Software\Policies\Microsoft\MicrosoftEdge\OpenSearch" /v "SetDefaultSearchEngine" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data New-Item -Path 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\OpenSearch' -Force | Out-Null New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\OpenSearch' -Name 'SetDefaultSearchEngine' -PropertyType String -Value '<enter value>' -Force | Out-Null