Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: By: Jack | Release 05/08/2017 | win10_unhelp_me_plox.bat | https://pastebin.com/aKinrLh5
- :: Author HAS NEVER RUN IT, Code is UNTESTED
- :: Do not read or even run this script/file, if you're easily offended
- :: USE AT YOUR [b]OWN[/b] RISK!!!!!11111ONEONEOne
- :: - if you do not know what the script/file commands do, DO NOT RUN SCRIPT/FILE
- :: -- This Script CAN/WILL brick (brake) your OS
- ::
- :: This script prevents the [annoying/"helpful"] Win10 "helppane.exe" (which launches in your browser) when you accidently/purposefully hit the [F1] Keyboard Key.
- ::
- ::
- :: 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
- :: you can thank MS for being hella retarded that you can not hotlink an answer directly. Contents of the post below.
- :: - 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]
- ::
- :: ---------------------------------------
- ::
- :: jingyu9575's post on October 9, 2015
- :: To make F1 do nothing, run this cmd script with administrator privilege:
- ::
- :: @echo off
- :: taskkill /f /im HelpPane.exe
- :: takeown /f %WinDir%\HelpPane.exe
- :: icacls %WinDir%\HelpPane.exe /deny Everyone:(X)
- ::
- :: ---------------------------------------
- ::
- @echo off
- :::::::::::::::::::::::::::::::::::::::
- :: ::
- :: Config-ur-ations ::
- :: ::
- :::::::::::::::::::::::::::::::::::::::
- :: User Vars
- set "_wait_time=5" rem Default: 5 - Number of [seconds] Internal pauses to help user read the messages before the script exits or progresses
- set "_console_elevated=" rem Default: NotSet - If ANYTHING is set in this variable, script will assume that it's running with elevated privledges
- :: 74 ::
- :::::::::::::::::::::::::::::::::::::::
- :::::::::::::::::::::::::::::::::::::::
- :::: ::::
- :::: Do NOT MODIFY BELOW UNLESS ::::
- :::: YOU KNOW WHAT YOU ARE DOING : :
- :::: ::::
- :::::::::::::::::::::::::::::::::::::::
- :::::::::::::::::::::::::::::::::::::::
- :: ::
- :: ::
- :::::: ::::::
- :::::::::::::::::::::::::::::::::::::::
- :: ::
- :: Admin me plox ::
- :: ::
- :::::::::::::::::::::::::::::::::::::::
- :: Admin Check
- if not defined _console_elevated set "_console_elevated="
- "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" 2>nul 1>nul && set /a "_console_elevated+=1"
- :: if needed, Create Script for ascension
- if not defined _console_elevated (
- echo Set Admin = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
- echo Admin.ShellExecute WScript.Arguments^(0^), "", "", "runas", 1 >> "%temp%\getadmin.vbs"
- )
- :: Ascend or Descend [I see you're building a nest]
- :: yes - this is Cappee-Pasta
- ::
- if defined _console_elevated (
- echo INFO: Admin Elevated Console [x]
- ) else (
- echo INFO: Admin Elevated Console [ ]
- if exist "%temp%\getadmin.vbs" (
- echo INFO: Starting Script in Admin Mode.
- call cscript "%temp%\getadmin.vbs" "%~s0" || (
- echo/FATAL: ERROR: Unknown
- echo/FATAL: ERROR: Please restart with admin privledges...
- if defined _wait_time timeout /t %_wait_time%
- goto :eof 255
- exit /b 255
- )
- ) else (
- echo/FATAL: ERROR: Unable to find my created elevated catalyst ["%temp%\getadmin.vbs"]
- echo/FATAL: ERROR: Please restart with admin privledges...
- if defined _wait_time timeout /t %_wait_time%
- goto :eof 1
- exit /b 1
- )
- if defined _wait_time timeout /t %_wait_time%
- goto :eof
- exit /b 0
- )
- :::::::::::::::::::::::::::::::::::::::
- :: ::
- :: Take-over and Occupy ::
- :: ::
- :::::::::::::::::::::::::::::::::::::::
- :: Only kill it if it's running [yes, this code is ugly, but it should work]
- call tasklist /fi "IMAGENAME eq HelpPane.exe" 2>nul | findstr /i "HelpPane" 2>nul 1>nul && (
- call taskkill /f /im "HelpPane.exe" 2>nul 1>nul || (
- echo/ERROR: Unable to Kill [HelpPane.exe]. Try killing it with [taskmgr.exe]
- )
- )
- :: Take-over
- call takeown /f %WinDir%\HelpPane.exe 1>nul || (
- echo ERROR: Unable to take ownership of [%WinDir%\HelpPane.exe]
- )
- :: Erbody -- DENIED
- 1>nul call icacls %WinDir%\HelpPane.exe /deny Everyone:(X) || (
- echo ERROR: Unable to set DENY Privledges for 'Everyone' - file - [%WinDir%\HelpPane.exe]
- )
- :::::::::::::::::::::::::::::::::::::::
- :: ::
- :: ::
- :: ~~~~ Batch~a~thon FINISHLINE ~~~~ ::
- :: ::
Advertisement