@Echo Off
Title Remove Administrative Tools Context Menu v1.2
Color 1F
cd "%systemroot%\system32"
call :IsAdmin

REM  Remove SystemTools Context Menu
REG delete "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\SystemTools" /f >NUL 2>&1

REM  Advanced System Properties
REG delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\AdvSysPrp" /f >NUL 2>&1

REM  Device Manager
REG delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\DevMan" /f >NUL 2>&1

REM  Regedit
REG delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\RegEd" /f >NUL 2>&1

REM  MS Config
REG delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\MSCfg" /f >NUL 2>&1

REM  PC/Windows Settings
REG delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\PCSet" /f >NUL 2>&1

REM  Programs and Features
REG delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ProgFeat" /f >NUL 2>&1

REM  Services
REG delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Servcs" /f >NUL 2>&1

REM  Control Panel
REG delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ContPanl" /f >NUL 2>&1

REM  Windows Update
REG delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\WUDT" /f >NUL 2>&1

REM  Event Viewer
REG delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\EventV" /f >NUL 2>&1

REM  Security Center
REG delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\SecCtr" /f >NUL 2>&1

REM  Task Scheduler
REG delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\TaskSchd" /f >NUL 2>&1
Exit

:IsAdmin
REG query "HKU\S-1-5-19\Environment" >NUL 2>&1
If Not %ERRORLEVEL% EQU 0 (
 Cls
 Echo You must have administrator rights to continue ... 
 Pause
 Exit
)

Cls
goto:eof
