Reset-chrome-policies.bat (Reset Chrome “Managed by your organization”)

Reset-chrome-policies.bat (Reset Chrome “Managed by your organization”) 1.1

Batch script that closes Chrome and removes Windows/Chrome policy remnants (files + registry) that lock settings or force extensions/search. Fixes the “Your browser is managed by your organization” message on unmanaged home PCs.


1.jpg


What it does​


  • Kills all Chrome processes.
  • Deletes local Group Policy caches: %WINDIR%\System32\GroupPolicy and GroupPolicyUsers.
  • Removes Google policy folders in Program Files / Program Files (x86).
  • Forces a Group Policy refresh (gpupdate /force).
  • Deletes policy/enrollment registry keys under HKLM and HKCU for Google/Chrome/Chromium, including the CloudManagementEnrollmentToken GUID.

How it helps​


  • Unlocks Chrome settings that were greyed out by rogue policies (homepage, search engine, startup pages).
  • Removes forced extensions/search providers pushed by adware or leftover enterprise policies.
  • Clears the “Managed by your organization” banner on personal devices.
  • Restores Chrome update behavior if it was blocked by policy.

When to use (and when not to)​


  • Use on: Personal Windows 10/11 machines that are not domain-joined/MDM-managed but show policy lock-downs after adware or a bad install.
  • Do NOT use on: Work/school devices that are genuinely managed (AD, Intune/MDM, Google Admin). You’ll be removing legitimate policies.

Requirements​


  • Windows 10/11, local Administrator rights.
  • Chrome will be closed automatically.
  • Optional: create a restore point / export registry first.

Steps​


  1. Unzip reset-chrome-policies.zip
  2. Save the script as reset-chrome-policies.bat.
  3. Right-click → Run as administrator.
  4. Wait for “operation completed” messages; press any key to close.
  5. Reboot.
  6. Open chrome://policy → verify policies are empty or expected only.
  7. (Optional) Chrome → Settings → Reset settings to defaults; remove any unwanted extensions; check for updates.

Disclaimer​


Use at your own risk on non-managed devices. This script removes local policy data and related registry keys; corporate policies will reapply if the device is actually managed. Always back up your system and registry before running.

Content of .bat file

Code:
@echo off

echo Closing Google Chrome...
taskkill /F /IM chrome.exe /T > nul
echo.

IF NOT EXIST "%WINDIR%\System32\GroupPolicy" goto next

echo Deleting GroupPolicy folder...
RD /S /Q "%WINDIR%\System32\GroupPolicy" || goto error
echo.

:next
IF NOT EXIST "%WINDIR%\System32\GroupPolicyUsers" goto next2

echo Deleting GroupPolicyUsers folder...
RD /S /Q "%WINDIR%\System32\GroupPolicyUsers" || goto error
echo.

:next2
IF NOT EXIST "%ProgramFiles(x86)%\Google\Policies" goto next3

echo Deleting GroupPolicyUsers folder...
RD /S /Q "%ProgramFiles(x86)%\Google\Policies" || goto error

:next3
IF NOT EXIST "%ProgramFiles%\Google\Policies" goto next4

echo Deleting GroupPolicyUsers folder...
RD /S /Q "%ProgramFiles%\Google\Policies" || goto error

:next4
gpupdate /force

echo Deleting policies from Windows registries...
reg delete HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome /f
reg delete HKEY_LOCAL_MACHINE\Software\Policies\Google\Update /f
reg delete HKEY_LOCAL_MACHINE\Software\Policies\Chromium /f
reg delete HKEY_LOCAL_MACHINE\Software\Google\Chrome /f
reg delete HKEY_LOCAL_MACHINE\Software\WOW6432Node\Google\Enrollment /f
reg delete HKEY_CURRENT_USER\Software\Policies\Google\Chrome /f
reg delete HKEY_CURRENT_USER\Software\Policies\Chromium /f
reg delete HKEY_CURRENT_USER\Software\Google\Chrome /f
reg delete "HKEY_LOCAL_MACHINE\Software\WOW6432Node\Google\Update\ClientState\{430FD4D0-B729-4F61-AA34-91526481799D}" /v "CloudManagementEnrollmentToken" /f

pause
exit

:error
echo.
echo An unexpected error has occurred. Did you run this program as Administrator? (Right-click and select Run as administrator)
echo.
pause
exit
Posted by
Jack
Downloads
318
Views
1,368
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Jack