@echo off
:: Enable ANSI colors
for /F "delims=" %%A in ('echo prompt $E^| cmd') do set "ESC=%%A"
cls
echo %ESC%[95m============================================================%ESC%[0m
echo %ESC%[96m WINDOWS 10 COPILOT REMOVAL TOOL %ESC%[0m
echo %ESC%[95m============================================================%ESC%[0m
echo.
echo %ESC%[93mThis tool will disable, remove, and block Copilot everywhere it can exist.%ESC%[0m
echo %ESC%[93mYou'll see each step explained clearly as it happens.%ESC%[0m
echo.
:: Check admin rights
net session >nul 2>&1
if %errorlevel% neq 0 (
echo %ESC%[91m[ERROR]%ESC%[0m Administrator privileges are required.
echo Right-click this file and choose: %ESC%[93mRun as administrator%ESC%[0m
pause
exit /b
)
echo %ESC%[92m[OK]%ESC%[0m Running with administrator rights.
echo.
:: STEP 1 — Disable Copilot via Group Policy registry
echo %ESC%[94mSTEP 1: Turning off Copilot policies...%ESC%[0m
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot" /v "TurnOffWindowsCopilot" /t REG_DWORD /d 1 /f >nul
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot" /v "TurnOffWindowsCopilot" /t REG_DWORD /d 1 /f >nul
echo %ESC%[92m → Copilot policy disabled.%ESC%[0m
echo.
:: STEP 2 — Remove taskbar Copilot button
echo %ESC%[94mSTEP 2: Removing the Copilot taskbar button...%ESC%[0m
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowCopilotButton" /t REG_DWORD /d 0 /f >nul
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowCopilotButton" /t REG_DWORD /d 0 /f >nul
echo %ESC%[92m → Taskbar Copilot button disabled.%ESC%[0m
echo.
:: STEP 3 — Remove shell integration
echo %ESC%[94mSTEP 3: Removing Copilot shell hooks...%ESC%[0m
reg delete "HKCU\Software\Microsoft\Windows\Shell\Copilot" /f >nul 2>&1
reg delete "HKLM\Software\Microsoft\Windows\Shell\Copilot" /f >nul 2>&1
echo %ESC%[92m → Shell integration removed.%ESC%[0m
echo.
:: STEP 4 — Kill and restart Explorer
echo %ESC%[94mSTEP 4: Restarting Explorer to flush UI...%ESC%[0m
echo %ESC%[93m → Closing Explorer (screen may flicker)...%ESC%[0m
taskkill /f /im explorer.exe >nul
timeout /t 1 >nul
echo %ESC%[93m → Restarting Explorer...%ESC%[0m
start explorer.exe
echo %ESC%[92m → Explorer refreshed.%ESC%[0m
echo.
:: STEP 5 — Disable search suggestions (blocks Copilot entry)
echo %ESC%[94mSTEP 5: Blocking Copilot inside the search bar...%ESC%[0m
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "DisableSearchBoxSuggestions" /t REG_DWORD /d 1 /f >nul
reg add "HKLM\Software\Policies\Microsoft\Windows\Explorer" /v "DisableSearchBoxSuggestions" /t REG_DWORD /d 1 /f >nul
echo %ESC%[92m → Web-driven Copilot suggestions disabled.%ESC%[0m
echo.
:: STEP 6 — Disable Copilot hotkeys
echo %ESC%[94mSTEP 6: Blocking Copilot keyboard shortcuts...%ESC%[0m
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "DisabledHotkeys" /t REG_SZ /d "C" /f >nul
echo %ESC%[92m → Copilot hotkeys disabled.%ESC%[0m
echo.
:: STEP 7 — Remove AppX packages (if any exist)
echo %ESC%[94mSTEP 7: Searching for Copilot AppX packages...%ESC%[0m
echo %ESC%[93m → If present, they will be removed.%ESC%[0m
for /f "tokens=1" %%A in ('powershell -NoProfile -Command "Get-AppxPackage *Microsoft.Windows_copilot* | Select -ExpandPackageFullName"') do (
echo %ESC%[93m Removing:%%A%ESC%[0m
powershell -NoProfile -Command "Remove-AppxPackage '%%A'" >nul
)
echo %ESC%[92m → AppX cleanup complete.%ESC%[0m
echo.
:: STEP 8 — Remove Windows capability packages
echo %ESC%[94mSTEP 8: Checking Windows capabilities for Copilot...%ESC%[0m
powershell -NoProfile -Command "Get-WindowsCapability -Online | Where-Object { $_.Name -like '*Copilot*' } | Remove-WindowsCapability -Online" >nul
echo %ESC%[92m → Capability cleanup complete.%ESC%[0m
echo.
:: DONE
echo %ESC%[95m============================================================%ESC%[0m
echo %ESC%[92m COPILOT HAS BEEN REMOVED AND DISABLED%ESC%[0m
echo %ESC%[95m============================================================%ESC%[0m
echo.
echo %ESC%[96mYou may reboot your computer for the absolute cleanest result.%ESC%[0m
echo.
pause
|