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 YellowWas this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article