Skip to content

Instantly share code, notes, and snippets.

@selfish
Last active April 30, 2016 23:41
Show Gist options
  • Save selfish/491bb9109c85707ff042 to your computer and use it in GitHub Desktop.
Save selfish/491bb9109c85707ff042 to your computer and use it in GitHub Desktop.
Remove all windows scheduled tasks cotaining string 'stringToRemove'
FOR /f %%i in ('schtasks /query ^| FINDSTR stringToRemove') do schtasks /Delete /TN "%%i" /F
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment