Remove Copilot from Windows 11

By Engineerisaac · 2025-11-17 17:55:05 Public
Back to feed

Remove copilot from windows with bat file.

create a text document on your desktop. Paste code into it. Save as RemoveCopilot.bat and then save file type as "All Files" not Text File.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
@echo off
title Remove Windows Copilot - Full Disable
echo ==========================================================
echo   Removing Windows Copilot from Windows 11
echo   Disabling UI toggles, registry flags, policies, and
echo   removing any installed Copilot packages.
echo ==========================================================
echo.

:: --- REQUIRE ADMIN ---
whoami /groups | find "S-1-5-32-544" >NUL
if errorlevel 1 (
    echo This script MUST be run as Administrator.
    pause
    exit /b
)

echo Killing Copilot processes...
taskkill /im "Copilot.exe" /f >NUL 2>&1
taskkill /im "WebViewHost.exe" /f >NUL 2>&1
taskkill /im "webview2.exe" /f >NUL 2>&1

echo.
echo === Removing Taskbar Copilot entry ===
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowCopilotButton /t REG_DWORD /d 0 /f
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowCopilotButton /t REG_DWORD /d 0 /f

echo.
echo === Disabling Windows Copilot Policies ===
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot" /v TurnOffWindowsCopilot /t REG_DWORD /d 1 /f
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot" /v TurnOffWindowsCopilot /t REG_DWORD /d 1 /f

echo.
echo === Disabling Copilot from Taskbar Settings ===
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarCopilot /t REG_DWORD /d 0 /f
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarCopilot /t REG_DWORD /d 0 /f

echo.
echo === Removing any Copilot App packages ===
powershell -NoLogo -NoProfile -Command ^
    "Get-AppxPackage *copilot* -AllUsers | Remove-AppxPackage -AllUsers" >NUL 2>&1

powershell -NoLogo -NoProfile -Command ^
    "Get-AppxProvisionedPackage -Online | Where-Object { $_.PackageName -like '*copilot*' } | Remove-AppxProvisionedPackage -Online" >NUL 2>&1

echo.
echo === Removing Copilot WebView components ===
powershell -NoLogo -NoProfile -Command ^
    "Get-AppxPackage *webexperience* -AllUsers | Remove-AppxPackage -AllUsers" >NUL 2>&1

powershell -NoLogo -NoProfile -Command ^
    "Get-AppxProvisionedPackage -Online | Where-Object { $_.PackageName -like '*webexperience*' } | Remove-AppxProvisionedPackage -Online" >NUL 2>&1

echo.
echo === Blocking Copilot binaries from returning ===
takeown /f "C:\Windows\SystemApps\Microsoft.Windows.Copilot_*" /r /d y >NUL 2>&1
icacls "C:\Windows\SystemApps\Microsoft.Windows.Copilot_*" /inheritance:r /deny *S-1-1-0:(OI)(CI)(F) >NUL 2>&1

takeown /f "C:\Windows\SystemApps\Microsoft.Windows.AICopilot_*" /r /d y >NUL 2>&1
icacls "C:\Windows\SystemApps\Microsoft.Windows.AICopilot_*" /inheritance:r /deny *S-1-1-0:(OI)(CI)(F) >NUL 2>&1

echo.
echo === Removing Copilot scheduled tasks ===
schtasks /Delete /TN "Microsoft\Windows\Copilot" /F >NUL 2>&1
schtasks /Delete /TN "Microsoft\Windows\AICopilot" /F >NUL 2>&1

echo.
echo === Restarting Explorer ===
taskkill /f /im explorer.exe >NUL
start explorer.exe

echo.
echo ==========================================================
echo               COPILOT REMOVED / DISABLED
echo ==========================================================
pause
exit /b
Comments
Log in to add a comment.
No comments yet.