Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Echo Off
- Color 1A
- Cd %systemroot%\system32
- REM --> Check for permissions
- Reg query "HKU\S-1-5-19\Environment"
- REM --> If error flag set, we do not have admin.
- if %errorlevel% NEQ 0 (
- ECHO **************************************
- ECHO Running Admin shell... Please wait...
- ECHO **************************************
- goto UACPrompt
- ) else ( goto gotAdmin )
- :UACPrompt
- echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
- set params = "%*:"=""
- echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
- "%temp%\getadmin.vbs"
- del "%temp%\getadmin.vbs"
- exit /B
- :gotAdmin
- Cls & Mode CON LINES=11 COLS=90 & Color 0D & Title Created By FreeBooter
- Echo.
- Echo.
- Echo.
- Echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
- Echo º Do You Want To Add Permanently Delete to Context Menu in Windows 10 (Y/N)? º
- Echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
- Echo.
- Echo.
- Set /p input= RESPONSE:
- If /i Not %input%==Y (Goto :_Ex) Else (Goto :_Start)
- :_Ex
- If /i Not %input%==N (Goto :EOF) Else (Goto :_RegRestore)
- :_Start
- Reg add "HKCR\*\shell\Windows.PermanentDelete" /v "CommandStateSync" /t REG_SZ /d "" /f > Nul
- Reg add "HKCR\*\shell\Windows.PermanentDelete" /v "ExplorerCommandHandler" /t REG_SZ /d "{E9571AB2-AD92-4ec6-8924-4E5AD33790F5}" /f >Nul
- Reg add "HKCR\*\shell\Windows.PermanentDelete" /v "Icon" /t REG_SZ /d "shell32.dll,-240" /f >Nul
- Reg add "HKCR\Directory\shell\Windows.PermanentDelete" /v "CommandStateSync" /t REG_SZ /d "" /f >Nul
- Reg add "HKCR\Directory\shell\Windows.PermanentDelete" /v "ExplorerCommandHandler" /t REG_SZ /d "{E9571AB2-AD92-4ec6-8924-4E5AD33790F5}" /f >Nul
- Reg add "HKCR\Directory\shell\Windows.PermanentDelete" /v "Icon" /t REG_SZ /d "shell32.dll,-240" /f >Nul
- Cls & Mode CON LINES=11 COLS=60 & Color 0D & Title Created By FreeBooter
- Echo.
- Echo.
- Echo.
- Echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
- Echo º Permanently Delete Context Menu Enabled º
- Echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
- Echo.
- Echo.
- Taskkill /im Explorer.exe /f >Nul
- Start Explorer.exe
- ping -n 6 localhost >Nul
- Exit
- :_RegRestore
- Reg Query "HKCR\*\shell\Windows.PermanentDelete" > Nul
- If %ErrorLevel% EQU 1 Goto :EOF
- Reg delete "HKCR\*\shell\Windows.PermanentDelete" /f > Nul
- Reg delete "HKCR\Directory\shell\Windows.PermanentDelete" /f > Nul
- Cls & Mode CON LINES=11 COLS=60 & Color 0D & Title Created By FreeBooter
- Echo.
- Echo.
- Echo.
- Echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
- Echo º Permanently Delete Context Menu Disabled º
- Echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
- Echo.
- Echo.
- Taskkill /im Explorer.exe /f >Nul
- Start Explorer.exe
- ping -n 6 localhost >Nul
- Exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement