Music Philosophy Art Math Chess Programming and much more ...
Copy this code and run it as a .bat i.e "fixwin11.bat" in the command prompt.
@echo off
title Restore Classic Right-Click Menu in Windows 11
color 0A
echo ==============================
echo Windows 11 Right-Click Menu Fix
echo ==============================
echo [1] Enable classic right-click menu
echo [2] Restore Windows 11 default menu
echo [3] Exit
echo ==============================
choice /C 123 /N /M "Choose an option: "
if errorlevel 3 exit
if errorlevel 2 goto restore
if errorlevel 1 goto enable
:enable
echo Enabling classic right-click menu...
reg add "HKEY_CURRENT_USER\Software\Classes\CLSID\{86CA1AA0-34AA-4E8B-A509-50C905BAE2A2}\InprocServer32" /f /ve
goto restart_explorer
:restore
echo Restoring Windows 11 default menu...
reg delete "HKEY_CURRENT_USER\Software\Classes\CLSID\{86CA1AA0-34AA-4E8B-A509-50C905BAE2A2}" /f
goto restart_explorer
:restart_explorer
echo Restarting Explorer...
taskkill /f /im explorer.exe
start explorer.exe
echo Done!
pause
exit
@echo off
title Restore Classic Right-Click Menu in Windows 11
color 0A
0
= Black backgroundA
= Light green textecho ==============================
echo [1] Enable classic right-click menu
choice /C 123 /N /M "Choose an option: "
1
, 2
, or 3
.
/C 123
→ Specifies the available choices (1, 2, or 3)./N
→ Hides the default [Y/N]?
prompt./M
→ Displays the message "Choose an option: "
.if errorlevel 3 exit
3
, and if so, exits the script.if errorlevel 2 goto restore
2
, it jumps to the :restore
section of the script.if errorlevel 1 goto enable
1
, it jumps to the :enable
section of the script.:enable
)reg add "HKEY_CURRENT_USER\Software\Classes\CLSID\{86CA1AA0-34AA-4E8B-A509-50C905BAE2A2}\InprocServer32" /f /ve
Adds a new registry entry to enable the classic right-click menu.
reg add
→ Adds a new registry entry."HKEY_CURRENT_USER\Software\Classes\CLSID\{...}\InprocServer32"
→ The registry path being modified./f
→ Forces the modification without prompting for confirmation./ve
→ Sets the "(Default)" value entry to an empty string (which enables the classic menu).After this, the script proceeds to restart Windows Explorer.
:restore
)reg delete "HKEY_CURRENT_USER\Software\Classes\CLSID\{86CA1AA0-34AA-4E8B-A509-50C905BAE2A2}" /f
Deletes the registry key to restore Windows 11’s default right-click menu.
reg delete
→ Deletes a registry key."HKEY_CURRENT_USER\Software\Classes\CLSID\{...}"
→ The registry path to be removed./f
→ Forces deletion without confirmation.After this, the script also proceeds to restart Windows Explorer.
:restart_explorer
)taskkill /f /im explorer.exe
taskkill
→ Terminates a running process./f
→ Forces termination without confirmation./im explorer.exe
→ Specifies the process name (explorer.exe) to be terminated.start explorer.exe
echo Done!
pause
exit