# Removes the CCC Network extension. No administrator rights. $ErrorActionPreference = 'Stop' # Older versions registered the package with the browser. Clear that if it is there. $id = 'ogjgfoccheddnakbkgdpggjidflheenp' foreach ($k in @("HKCU:\Software\Microsoft\Edge\Extensions\$id", "HKCU:\Software\Google\Chrome\Extensions\$id")) { if (Test-Path $k) { Remove-Item -Path $k -Recurse -Force; Write-Host (' removed ' + $k) } } $folder = Join-Path $env:LOCALAPPDATA 'OMI Firm\CCC Network' if (Test-Path $folder) { Remove-Item -Path $folder -Recurse -Force; Write-Host (' removed ' + $folder) } Write-Host '' Write-Host ' Done. Open edge://extensions and press Remove on' -ForegroundColor Green Write-Host ' OMI Firm CCC - Network to finish taking it out of the browser.' -ForegroundColor Green Write-Host ''