🖥️ Batch (CMD)

Enable Dark Mode (Batch)

Switches File Explorer and other system surfaces to dark mode. Applies the tweak via reg.exe.

By WindowsScripting.com · 533 B
SetDarkMode.bat
@echo off
:: ============================================================
:: SetDarkMode.bat
::
:: Enable Dark Mode.
:: Switches File Explorer and other system surfaces to dark mode.
:: ============================================================

reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "AppsUseLightTheme" /t REG_DWORD /d "0" /f

if %ERRORLEVEL% EQU 0 (
    echo Enable Dark Mode applied.
) else (
    echo Failed to apply tweak. Try running this script as Administrator.
)
pause