title: Disabling all tasks with schtasks
body: <p>I need to do a batch file who disables all tasks, so far i've gotten this:</p>
  
  <pre><code>@echo OFF
  for /f "tokens=2 delims=:" %%i  in ('schtasks /Query /FO LIST ^| findstr "Nombre de tarea:"') do (call :subroutine "%%i")
  
  :subroutine
  set TASKNAME=%%i
  echo %TASKNAME%:%1
  schtasks /change /tn=%TASKNAME%:%1 /disable
  GOTO :eof
  </code></pre>
  
  <p>so, im pretty bad with grep, its been 2 years without having to use it, this is what "findstr" "spits": </p>
  
  <pre><code> %i:" Interactivo/En segundo plano"
   %i:" ADMSH-PC"
   %i:" \Microsoft\Windows\Windows Media Sharing\UpdateLibrary"
  </code></pre>
  
  <p>so i get 3 rows per task and also i only need the "task name" for the tn property instead of the whole path</p>
  
  <p>Any help/tips? Thanks.</p>