Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- get-process
- while ($kilthis -ne "x"){
- $kilthis = Read-Host -Prompt 'Input the name of the process you would like to kil'
- try{Get-Process $kilthis | Stop-Process}
- catch [get-process.exception]{Write-host "please enter a valid name"}
- finally{}}
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement