Skip to content

Instantly share code, notes, and snippets.

@Nattefrost
Created December 4, 2018 17:13
Show Gist options
  • Save Nattefrost/d7de04e0aa0dc5d99fed343d32481af3 to your computer and use it in GitHub Desktop.
Save Nattefrost/d7de04e0aa0dc5d99fed343d32481af3 to your computer and use it in GitHub Desktop.
killing a process
# call with :
# powershell.exe -file .\kill_process.ps1 'Dwarf Fortress'
param(
[string]$p_name = ""
)
$procid=get-process "$p_name" | select -expand id
Stop-Process -id $procid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment