Files
WindowsStuff/Batch/DisableRecall.bat
2026-07-26 09:44:45 +02:00

26 lines
842 B
Batchfile

@echo off
:: Check administrator rights
net session >nul 2>&1
if %errorLevel% neq 0 (
echo You need to have administrator rights to execute this script!
echo Right click this file and choose for 'Run as admin'.
pause
exit /b
)
echo.
echo Remove Recall via DISM
DISM /Online /Disable-Feature /FeatureName:Recall /NoRestart
echo.
echo Add registry block for future windows updates
:: Maak de WindowsAI-sleutel aan en zet AllowRecallEnablement op 0
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "AllowRecallEnablement" /t REG_DWORD /d 0 /f
echo.
echo Also block it for the current user
reg add "HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "AllowRecallEnablement" /t REG_DWORD /d 0 /f
echo.
echo Success! Please reboot your computer so the changes can take effect.
pause