Skip to content

Instantly share code, notes, and snippets.

@MarcusFelling
Created September 20, 2018 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarcusFelling/ef56317fb78dfa725428eacd6d9163e1 to your computer and use it in GitHub Desktop.
Save MarcusFelling/ef56317fb78dfa725428eacd6d9163e1 to your computer and use it in GitHub Desktop.
$dotnet = Get-Process dotnet -ErrorAction SilentlyContinue
If($dotnet){
taskkill.exe /F /IM dotnet.exe
}
Else{
"No dotnet.exe tasks to kill"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment