1iJaCk

win10_unhelp_me_plox.bat

May 8th, 2017
267
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 4.99 KB | None | 0 0
  1. :: By: Jack | Release 05/08/2017 | win10_unhelp_me_plox.bat | https://pastebin.com/aKinrLh5
  2.  
  3.  
  4.  
  5. :: Author HAS NEVER RUN IT, Code is UNTESTED
  6. :: Do not read or even run this script/file,  if you're easily offended
  7.  
  8. :: USE AT YOUR [b]OWN[/b] RISK!!!!!11111ONEONEOne
  9. :: - if you do not know what the script/file commands do, DO NOT RUN SCRIPT/FILE
  10. :: -- This Script CAN/WILL brick (brake) your OS  
  11. ::
  12.  
  13.  
  14.  
  15.  
  16. :: This script prevents the [annoying/"helpful"] Win10 "helppane.exe" (which launches in your browser) when you accidently/purposefully hit the [F1] Keyboard Key.
  17. ::
  18. ::
  19. :: Sourced commands from this post - https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/how-do-i-stop-f1-opening-a-browser-window-on-how/7f68f9b8-9d87-43a5-9a79-db87702254b5
  20. :: you can thank MS for being hella retarded that you can not hotlink an answer directly.  Contents of the post below.
  21. :: - P.S. - JaCk:[rant] This is just as annoying as being unable to jump (climb, dive, but not f-ing jump) in AAA game titles in 2016/2017.  I guess I will have to stick with the classics [/rant]
  22. ::
  23. :: ---------------------------------------
  24. ::
  25. :: jingyu9575's post on October 9, 2015
  26. ::    To make F1 do nothing, run this cmd script with administrator privilege:
  27. ::
  28. ::      @echo off
  29. ::      taskkill /f /im HelpPane.exe
  30. ::      takeown /f %WinDir%\HelpPane.exe
  31. ::      icacls %WinDir%\HelpPane.exe /deny Everyone:(X)
  32. ::
  33. :: ---------------------------------------
  34. ::
  35.  
  36. @echo off
  37.  
  38. :::::::::::::::::::::::::::::::::::::::
  39. ::                                   ::
  40. ::         Config-ur-ations          ::
  41. ::                                   ::
  42. :::::::::::::::::::::::::::::::::::::::
  43.  
  44. :: User Vars
  45. set "_wait_time=5"          rem Default:   5    -  Number of [seconds] Internal pauses to help user read the messages before the script exits or progresses
  46. set "_console_elevated="    rem Default: NotSet -  If ANYTHING is set in this variable, script will assume that it's running with elevated privledges
  47.  
  48.  
  49.  
  50.      :: 74 ::                    
  51. :::::::::::::::::::::::::::::::::::::::
  52. :::::::::::::::::::::::::::::::::::::::
  53. ::::                               ::::
  54. ::::  Do NOT MODIFY BELOW UNLESS   ::::
  55. ::::  YOU KNOW WHAT YOU ARE DOING  :  :
  56. ::::                               ::::
  57. :::::::::::::::::::::::::::::::::::::::
  58. :::::::::::::::::::::::::::::::::::::::
  59.   ::                             ::
  60.   ::                             ::
  61. ::::::                         ::::::  
  62.  
  63.    
  64.    
  65. :::::::::::::::::::::::::::::::::::::::
  66. ::                                   ::
  67. ::           Admin me plox           ::
  68. ::                                   ::
  69. :::::::::::::::::::::::::::::::::::::::
  70.  
  71.  
  72. :: Admin Check
  73. if not defined _console_elevated set "_console_elevated="
  74. "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" 2>nul 1>nul && set /a "_console_elevated+=1"
  75. :: if needed, Create Script for ascension
  76. if not defined _console_elevated (
  77.     echo Set Admin = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
  78.     echo Admin.ShellExecute WScript.Arguments^(0^), "", "", "runas", 1 >> "%temp%\getadmin.vbs"
  79. )
  80.  
  81.  
  82.  
  83. :: Ascend or Descend [I see you're building a nest]
  84. ::  yes - this is Cappee-Pasta
  85. ::
  86. if defined _console_elevated (
  87.     echo INFO: Admin Elevated Console [x]
  88. ) else (
  89.     echo INFO: Admin Elevated Console [ ]
  90.  
  91.     if exist "%temp%\getadmin.vbs" (
  92.         echo INFO: Starting Script in Admin Mode.
  93.         call cscript "%temp%\getadmin.vbs" "%~s0" || (
  94.             echo/FATAL: ERROR: Unknown
  95.             echo/FATAL: ERROR: Please restart with admin privledges...
  96.    
  97.             if defined _wait_time timeout /t %_wait_time%
  98.             goto :eof 255
  99.             exit /b 255
  100.         )
  101.     ) else (
  102.         echo/FATAL: ERROR: Unable to find my created elevated catalyst ["%temp%\getadmin.vbs"]
  103.         echo/FATAL: ERROR: Please restart with admin privledges...
  104.    
  105.         if defined _wait_time timeout /t %_wait_time%
  106.         goto :eof 1
  107.         exit /b 1
  108.     )
  109.  
  110.     if defined _wait_time timeout /t %_wait_time%
  111.     goto :eof
  112.     exit /b 0      
  113. )
  114.  
  115. :::::::::::::::::::::::::::::::::::::::
  116. ::                                   ::
  117. ::        Take-over and Occupy       ::
  118. ::                                   ::
  119. :::::::::::::::::::::::::::::::::::::::
  120.  
  121. :: Only kill it if it's running [yes, this code is ugly, but it should work]
  122. call tasklist /fi "IMAGENAME eq HelpPane.exe" 2>nul | findstr /i "HelpPane" 2>nul 1>nul && (
  123.     call taskkill /f /im "HelpPane.exe" 2>nul 1>nul || (
  124.         echo/ERROR: Unable to Kill [HelpPane.exe].  Try killing it with [taskmgr.exe]
  125.     )
  126. )
  127.  
  128. :: Take-over
  129. call takeown /f %WinDir%\HelpPane.exe  1>nul || (
  130.     echo ERROR: Unable to take ownership of [%WinDir%\HelpPane.exe]
  131. )
  132.  
  133. :: Erbody -- DENIED
  134. 1>nul call icacls %WinDir%\HelpPane.exe /deny Everyone:(X) || (
  135.     echo ERROR: Unable to set DENY Privledges for 'Everyone' - file - [%WinDir%\HelpPane.exe]
  136. )
  137.  
  138. :::::::::::::::::::::::::::::::::::::::
  139. ::                                   ::
  140. ::                                   ::
  141. :: ~~~~ Batch~a~thon FINISHLINE ~~~~ ::
  142. ::                                   ::
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment