🖥️ Batch (CMD)

Disable Recent Documents History (Batch)

Stops Windows from tracking recently opened documents. Applies the tweak via reg.exe.

By WindowsScripting.com · 574 B
SetDisableRecentDocsHistory.bat
@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