Advertisement
FreeBooter

ControlPaneltoFileExplorer.bat

Aug 26th, 2017
477
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.96 KB | None | 0 0
  1. @Echo Off
  2. Color 1A
  3.  
  4. Cd %systemroot%\system32
  5.  
  6.  
  7.  
  8.  
  9. REM  --> Check for permissions
  10. Reg query "HKU\S-1-5-19\Environment"
  11. REM --> If error flag set, we do not have admin.
  12. if %errorlevel% NEQ 0 (
  13. ECHO                 **************************************
  14. ECHO                  Running Admin shell... Please wait...
  15. ECHO                 **************************************
  16.  
  17.     goto UACPrompt
  18. ) else ( goto gotAdmin )
  19.  
  20. :UACPrompt
  21.     echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
  22.     set params = "%*:"=""
  23.     echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
  24.  
  25.     "%temp%\getadmin.vbs"
  26.     del "%temp%\getadmin.vbs"
  27.     exit /B
  28.  
  29.  
  30. :gotAdmin
  31.  
  32. Cls & Mode CON  LINES=11 COLS=90 & Color 0D & Title Created By FreeBooter
  33. Echo.
  34. Echo.
  35. Echo.
  36. Echo       ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
  37. Echo       º Do You Want To Add the Control Panel to Windows File Explorer (Y/N)? º  
  38. Echo       ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
  39. Echo.
  40. Echo.
  41.  
  42.  
  43. Set /p input= RESPONSE:
  44.  
  45. If /i  Not %input%==Y (Goto :_Ex) Else (Goto :_Start)
  46.  
  47. :_Ex
  48. If /i Not %input%==N  (Goto :EOF) Else (Goto :_RegRestore)
  49.  
  50.  
  51.  
  52. :_Start
  53.  
  54. Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{26EE0668-A00A-44D7-9371-BEB064C98683}" /f  > NUL
  55.  
  56. Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{21EC2020-3AEA-1069-A2DD-08002B30309D}" /f  > NUL
  57.  
  58. Cls & Mode CON  LINES=11 COLS=65 & Color 0D & Title Created By FreeBooter
  59. Echo.
  60. Echo.
  61. Echo.
  62. Echo       ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
  63. Echo       º  Control Panel Added to Windows File Explorer º  
  64. Echo       ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
  65. Echo.
  66. Echo.
  67.  
  68. Taskkill /im Explorer.exe /f >Nul
  69.  
  70. Start Explorer.exe
  71.  
  72. ping -n 6 localhost >Nul
  73. Exit
  74.  
  75.  
  76. :_RegRestore
  77.  
  78.  
  79. Reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{26EE0668-A00A-44D7-9371-BEB064C98683}" /f > Nul
  80. Reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{21EC2020-3AEA-1069-A2DD-08002B30309D}" /f > Nul
  81.  
  82.  
  83. Cls & Mode CON  LINES=11 COLS=65 & Color 0D & Title Created By FreeBooter
  84. Echo.
  85. Echo.
  86. Echo.
  87. Echo       ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
  88. Echo       º Control Panel Removed From Windows File Explorer  º  
  89. Echo       ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
  90. Echo.
  91. Echo.
  92.  
  93. Taskkill /im Explorer.exe /f >Nul
  94.  
  95. Start Explorer.exe
  96.  
  97. ping -n 6 localhost >nul
  98. Exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement