@echo off
CLS
color 1f
TITLE Checking for Admin...
echo.
cd %systemroot%\system32
call :IsAdmin

TITLE Command Prompt Context Menu
cls
color 1f
echo.
REM Enable Unicode
chcp 65001 >nul

echo.
echo Press enter without anything written to set auto translated.
echo.
SET /p "C1=Enter in your native language for: Command Prompt "
IF /I "%C1%"=="" SET "C1=@%SystemRoot%\system32\shell32.dll,-22022"
echo.
SET /p "E1=Enter in your native language for: Administrator "
IF /I "%E1%"=="" SET "E1=@%SystemRoot%\system32\shell32.dll,-21763"
echo.

REM Command Prompt Context Submenus
reg add "HKCR\Directory\shell\MenuCmd" /v "MUIVerb" /t REG_SZ /d "%C1%" /f >nul 2>&1
reg add "HKCR\Directory\shell\MenuCmd" /v "Icon" /t REG_SZ /d "cmd.exe" /f >nul 2>&1
reg add "HKCR\Directory\shell\MenuCmd" /v "ExtendedSubCommandsKey" /t REG_SZ /d "Directory\ContextMenus\MenuCmd" /f >nul 2>&1
reg add "HKCR\Directory\shell\MenuCmd" /v "Position" /t REG_SZ /d "Top" /f >nul 2>&1

reg add "HKCR\Directory\background\shell\MenuCmd" /v "MUIVerb" /t REG_SZ /d "%C1%" /f >nul 2>&1
reg add "HKCR\Directory\background\shell\MenuCmd" /v "Icon" /t REG_SZ /d "cmd.exe" /f >nul 2>&1
reg add "HKCR\Directory\background\shell\MenuCmd" /v "ExtendedSubCommandsKey" /t REG_SZ /d "Directory\ContextMenus\MenuCmd" /f >nul 2>&1
reg add "HKCR\Directory\background\shell\MenuCmd" /v "Position" /t REG_SZ /d "Top" /f >nul 2>&1

reg add "HKCR\LibraryFolder\background\shell\MenuCmd" /v "MUIVerb" /t REG_SZ /d "%C1%" /f >nul 2>&1
reg add "HKCR\LibraryFolder\background\shell\MenuCmd" /v "Icon" /t REG_SZ /d "cmd.exe" /f >nul 2>&1
reg add "HKCR\LibraryFolder\background\shell\MenuCmd" /v "ExtendedSubCommandsKey" /t REG_SZ /d "Directory\ContextMenus\MenuCmd" /f >nul 2>&1
reg add "HKCR\LibraryFolder\background\shell\MenuCmd" /v "Position" /t REG_SZ /d "Top" /f >nul 2>&1

reg add "HKCR\Drive\shell\MenuCmd" /v "MUIVerb" /t REG_SZ /d "%C1%" /f >nul 2>&1
reg add "HKCR\Drive\shell\MenuCmd" /v "Icon" /t REG_SZ /d "cmd.exe" /f >nul 2>&1
reg add "HKCR\Drive\shell\MenuCmd" /v "ExtendedSubCommandsKey" /t REG_SZ /d "Directory\ContextMenus\MenuCmd" /f >nul 2>&1
reg add "HKCR\Drive\shell\MenuCmd" /v "Position" /t REG_SZ /d "Top" /f >nul 2>&1

reg add "HKCR\Directory\ContextMenus\MenuCmd\shell\open" /v "MUIVerb" /t REG_SZ /d "%C1%" /f >nul 2>&1
reg add "HKCR\Directory\ContextMenus\MenuCmd\shell\open" /v "Icon" /t REG_SZ /d "cmd.exe" /f >nul 2>&1
reg add "HKCR\Directory\ContextMenus\MenuCmd\shell\open\command" /ve /t REG_SZ /d "cmd.exe /s /k pushd \"%%V\"" /f >nul 2>&1

reg add "HKCR\Directory\ContextMenus\MenuCmd\shell\runas" /v "MUIVerb" /t REG_SZ /d "%E1%" /f >nul 2>&1
reg add "HKCR\Directory\ContextMenus\MenuCmd\shell\runas" /v "Icon" /t REG_SZ /d "cmd.exe" /f >nul 2>&1
reg add "HKCR\Directory\ContextMenus\MenuCmd\shell\runas" /v "HasLUAShield" /t REG_SZ /d "" /f >nul 2>&1
reg add "HKCR\Directory\ContextMenus\MenuCmd\shell\runas\command" /ve /t REG_SZ /d "cmd.exe /s /k pushd \"%%V\"" /f >nul 2>&1

echo.
echo Done.
echo.
Pause
exit
=====================================================================================
:IsAdmin
Reg.exe query "HKU\S-1-5-19\Environment"
If Not %ERRORLEVEL% EQU 0 (
 Cls & echo. & Echo You must have administrator rights to continue ... & echo.
 Pause & Exit
)
Cls

exit /b