@echo off
:: ============================================================
:: SetDisableRecentDocsHistory.bat
::
:: Disable Recent Documents History.
:: Stops Windows from tracking recently opened documents.
:: ============================================================

reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoRecentDocsHistory" /t REG_DWORD /d "1" /f

if %ERRORLEVEL% EQU 0 (
    echo Disable Recent Documents History applied.
) else (
    echo Failed to apply tweak. Try running this script as Administrator.
)
pause