Advertisement
mattb47

Disable-Windows-AI-Crap.bat

Jan 3rd, 2025 (edited)
1,648
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Winbatch 2.82 KB | Source Code | 0 0
  1. @echo off
  2. rem
  3. rem Disable Cortana, Copilot, and Recall
  4. rem by Matthew Borcherding
  5. rem matt@borchtech.com
  6. rem 01/03/2025
  7. rem
  8. rem Based on info from:
  9. rem
  10. rem Cortana removal:
  11. rem https://www.elevenforum.com/t/enable-or-disable-cortana-in-windows-11.6407/
  12. rem
  13. rem Copilot removal:
  14. rem https://answers.microsoft.com/en-us/windows/forum/all/how-do-i-get-this-ai-copilot-off-my-computer/65c4f26b-6320-4220-97a1-020bc50f1d70
  15. rem https://pureinfotech.com/disable-recall-windows-11/
  16. rem https://www.elevenforum.com/t/completely-disable-and-remove-copilot-in-windows-11.23264/
  17. rem
  18. rem Recall removal:
  19. rem https://www.thewindowsclub.com/enable-or-disable-recall-snapshots-in-windows
  20. rem https://www.thewindowsclub.com/how-to-uninstall-recall-feature-in-windows
  21.  
  22. rem
  23. rem * Cortana was the old AI feature in Windows 10 and 11
  24. rem * Copilot is the new AI for Windows 11
  25. rem * Recall is the regular screenshot system in Windows 11 24H2 (and future builds?)
  26. rem
  27. rem I find all of these to be either not useful, or huge security problems.
  28. rem So let's disable them all.
  29. rem
  30. rem This will work on Windows 10 as well, though it only has Cortana.
  31. rem
  32.  
  33. rem
  34. rem --- DISABLE CORTANA ---
  35. rem
  36.  
  37. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v AllowCortana /t REG_DWORD /d 0 /f > nul
  38.  
  39. rem
  40. rem --- DISABLE COPILOT ---
  41. rem
  42.  
  43. reg add "HKCU\Software\Policies\Microsoft\Windows\Copilot" /v "TurnOffWindowsCopilot" /t REG_DWORD /d 1 /f > nul
  44. reg add "HKLM\Software\Policies\Microsoft\Windows\Copilot" /v "TurnOffWindowsCopilot" /t REG_DWORD /d 1 /f > nul
  45.  
  46. rem
  47. rem Seen keys as both "Windows\Copilot" and "WindowsCopilot", so doing
  48. rem it both ways.
  49. rem
  50.  
  51. reg add "HKCU\Software\Policies\Microsoft\WindowsCopilot" /v "TurnOffWindowsCopilot" /t REG_DWORD /d 1 /f > nul
  52. reg add "HKLM\Software\Policies\Microsoft\WindowsCopilot" /v "TurnOffWindowsCopilot" /t REG_DWORD /d 1 /f > nul
  53.  
  54. reg add "HKCU\Software\Policies\Microsoft\Windows\WindowsAI" /v "DisableAIDataAnalysis" /t REG_DWORD /d 1 /f > nul
  55. reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsAI" /v "DisableAIDataAnalysis" /t REG_DWORD /d 1 /f > nul
  56.  
  57. reg add "HKCU\Software\Policies\Microsoft\Edge" /v "HubsSidebarEnabled" /t REG_DWORD /d 0 /f > nul
  58. reg add "HKLM\Software\Policies\Microsoft\Edge" /v "HubsSidebarEnabled" /t REG_DWORD /d 0 /f > nul
  59.  
  60. reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "DisableSearchBoxSuggestions" /t REG_DWORD /d 1 /f > nul
  61. reg add "HKLM\Software\Policies\Microsoft\Windows\Explorer" /v "DisableSearchBoxSuggestions" /t REG_DWORD /d 1 /f > nul
  62.  
  63.  
  64. rem
  65. rem --- REMOVE RECALL ---
  66. rem
  67.  
  68. rem
  69. rem This may also be needed, based on info here:
  70. rem
  71.  
  72. DISM /Online /Disable-Feature /Featurename:Recall >nul
  73.  
  74. echo.
  75. echo Cortana and Copilot now disabled.
  76. echo Recall now removed.
  77. echo Reboot to finalize/enable.
  78. echo.
  79.  
  80.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement