@echo off
title EasierSBC uninstaller
net session >nul 2>&1
if not "%errorlevel%"=="0" (
  echo Asking for administrator rights...
  powershell -NoProfile -Command "Start-Process -FilePath '%~f0' -Verb RunAs"
  exit /b
)
reg delete "HKLM\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist" /v 9137 /f >nul 2>&1
reg delete "HKLM\SOFTWARE\Policies\Google\Chrome\ExtensionSettings\blfnjnpnjkdbbndfeliimlhmldgaefhe" /f >nul 2>&1
echo   EasierSBC policy removed. Restart Chrome and it drops the
echo   extension on the next start.
echo.
pause
