SHARE
TWEET

Untitled

a guest Feb 11th, 2017 187 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. This batch file may help speed up the disabling of tasks. Save as disabletasks.bat. Right-click and run as administrator. Much faster than browsing task scheduler.
  2. <pre><code>
  3. @ECHO OFF
  4. REM --- remember to invoke from ELEVATED command prompt!
  5. REM --- or start the batch with context menu &quot;run as admin&quot;.
  6. goto check_Permissions
  7.  
  8. :check_Permissions
  9.     echo Administrative permissions required. Detecting permissions...
  10.  
  11.     net session &gt;nul 2&gt;&amp;1
  12.     if %errorLevel% == 0 (
  13.         goto getgoing
  14.     ) else (
  15.         echo Failure: Current permissions inadequate.
  16.         echo Close, then right-click file and choose &quot;Run as Administrator&quot;
  17.     )
  18.  
  19.     pause &gt;nul
  20. :getgoing
  21. SETLOCAL
  22. echo [ Remove and Block Win10 for Win7 ]
  23.    echo.
  24. :prompt
  25.    set /p yesno=* create system restore point? (y/n):
  26.    if /i &quot;%yesno:~,1%&quot; equ &quot;y&quot; goto rpoint
  27.    if /i &quot;%yesno:~,1%&quot; equ &quot;n&quot; goto main
  28.    echo.
  29.    goto prompt
  30.  
  31. :main
  32.  
  33. timeout 5
  34.  
  35. REM --- Disable tasks
  36. echo Disabling tasks...
  37. schtasks /change /disable /tn &quot;\microsoft\windows\application experience\aitagent&quot;
  38. schtasks /change /disable /tn &quot;\microsoft\windows\application experience\microsoft compatibility appraiser&quot;
  39. schtasks /change /disable /tn &quot;\microsoft\windows\application experience\programdataupdater&quot;
  40. schtasks /change /disable /tn &quot;\microsoft\windows\autochk\proxy&quot;
  41. schtasks /change /disable /tn &quot;\microsoft\windows\customer experience improvement program\consolidator&quot;
  42. schtasks /change /disable /tn &quot;\microsoft\windows\customer experience improvement program\kernelceiptask&quot;
  43. schtasks /change /disable /tn &quot;\microsoft\windows\customer experience improvement program\usbceip&quot;
  44. schtasks /change /disable /tn &quot;\microsoft\windows\diskdiagnostic\microsoft-windows-diskdiagnosticdatacollector&quot;
  45. schtasks /change /disable /tn &quot;\microsoft\windows\maintenance\winsat&quot;
  46. schtasks /change /disable /tn &quot;\microsoft\windows\media center\activatewindowssearch&quot;
  47. schtasks /change /disable /tn &quot;\microsoft\windows\media center\configureinternettimeservice&quot;
  48. schtasks /change /disable /tn &quot;\microsoft\windows\media center\dispatchrecoverytasks&quot;
  49. schtasks /change /disable /tn &quot;\microsoft\windows\media center\ehdrminit&quot;
  50. schtasks /change /disable /tn &quot;\microsoft\windows\media center\installplayready&quot;
  51. schtasks /change /disable /tn &quot;\microsoft\windows\media center\mcupdate&quot;
  52. schtasks /change /disable /tn &quot;\microsoft\windows\media center\mediacenterrecoverytask&quot;
  53. schtasks /change /disable /tn &quot;\microsoft\windows\media center\objectstorerecoverytask&quot;
  54. schtasks /change /disable /tn &quot;\microsoft\windows\media center\ocuractivate&quot;
  55. schtasks /change /disable /tn &quot;\microsoft\windows\media center\ocurdiscovery&quot;
  56. schtasks /change /disable /tn &quot;\microsoft\windows\media center\pbdadiscovery&quot;
  57. schtasks /change /disable /tn &quot;\microsoft\windows\media center\pbdadiscoveryw1&quot;
  58. schtasks /change /disable /tn &quot;\microsoft\windows\media center\pbdadiscoveryw2&quot;
  59. schtasks /change /disable /tn &quot;\microsoft\windows\media center\pvrrecoverytask&quot;
  60. schtasks /change /disable /tn &quot;\microsoft\windows\media center\pvrscheduletask&quot;
  61. schtasks /change /disable /tn &quot;\microsoft\windows\media center\registersearch&quot;
  62. schtasks /change /disable /tn &quot;\microsoft\windows\media center\reindexsearchroot&quot;
  63. schtasks /change /disable /tn &quot;\microsoft\windows\media center\sqlliterecoverytask&quot;
  64. schtasks /change /disable /tn &quot;\microsoft\windows\media center\updaterecordpath&quot;
  65. schtasks /change /disable /tn &quot;\microsoft\windows\pi\sqm-tasks&quot;
  66. schtasks /change /disable /tn &quot;\microsoft\windows\power efficiency diagnostics\analyzeSystem&quot;
  67. schtasks /change /disable /tn &quot;\microsoft\windows\setup\gwx\refreshgwxconfigandcontent&quot;
  68. schtasks /change /disable /tn &quot;\microsoft\windows\windows error reporting\queuereporting&quot;
  69. echo - done
  70. timeout 5
  71.  
  72. REM --- Kill services
  73. echo Killing Diagtrack-service (if it still exists)...
  74. sc config DiagTrack start= disabled
  75. net stop DiagTrack
  76. echo - done
  77.  
  78.    echo [ Complete - Remove and Block Win10 for Win7 %date% %time% ]
  79.    echo [ Press any key to exit ]
  80.    echo.
  81.    pause &gt;nul
  82. shutdown /r /f /t 00
  83.    exit
  84.  
  85. :rpoint
  86.    wmic.exe /namespace:\\root\default path systemrestore call createrestorepoint &quot;Remove and Block 10&quot;, 100, 12
  87.    if %errorlevel% == 0 goto main
  88.    echo.
  89.    set /p yesno=&quot; failed to create system restore point. continue? (y/n):  &quot;
  90.    if /i &quot;%yesno:~,1%&quot; equ &quot;y&quot; goto main
  91.    if /i &quot;%yesno:~,1%&quot; equ &quot;n&quot; (
  92.       echo.
  93.       echo [ done - any key to exit ]
  94.       echo.
  95.       pause &gt;nul
  96.       exit
  97.    )
  98.  
  99. goto prompt
  100. REM --- EOF
  101. </code></pre>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top