Force Install uBlock Origin in Edge and Chrome

Modified on Fri, 30 Jan at 4:05 PM

Run in admin Powershell

# Define the extension strings
$chromeUBO = "ddkjiahejlhfcafbddmgiahcphecmpfh;https://clients2.google.com/service/update2/crx"
$edgeUBO   = "odfafepnkmbhccpbejgmiehpchacaeak;https://edge.microsoft.com/extensionwebstorebase/v1/crx"

# 1. Configure Google Chrome (uBlock Origin Lite)
$chromePath = "HKLM:\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist"
if (!(Test-Path $chromePath)) { 
    New-Item -Path $chromePath -Force | Out-Null 
}
New-ItemProperty -Path $chromePath -Name "1" -Value $chromeUBO -PropertyType String -Force

# 2. Configure Microsoft Edge (uBlock Origin)
$edgePath = "HKLM:\SOFTWARE\Policies\Microsoft\Edge\ExtensionInstallForcelist"
if (!(Test-Path $edgePath)) { 
    New-Item -Path $edgePath -Force | Out-Null 
}
New-ItemProperty -Path $edgePath -Name "1" -Value $edgeUBO -PropertyType String -Force

Write-Host "Success! uBlock Origin has been forced for all users." -ForegroundColor Cyan
Write-Host "Note: Restart your browsers to see the changes." -ForegroundColor Yellow

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article