An open API service indexing awesome lists of open source software.

https://github.com/aetonsi/pwsh__quit

{pwsh} Powershell tool to stop processes with the given name.
https://github.com/aetonsi/pwsh__quit

powershell process pwsh stop-process

Last synced: 3 months ago
JSON representation

{pwsh} Powershell tool to stop processes with the given name.

Awesome Lists containing this project

README

          

# pwsh__Quit
Powershell tool to stop processes with the given name.

# Usage
```powershell
# First import the module
Import-Module ./Quit.psm1

# Then you can use the imported function
Invoke-Quit -im notepad
# or, killing the process if it does not gracefully exits
Invoke-Quit -im notepad -force
# or, with more verbose output
Invoke-Quit -im notepad -vvv
# or, using taskkill.exe (windows) to kill the process if necessary
Invoke-Quit -im notepad -force -taskkill

# The function will return a boolean, $true if the process(es) was found and it exited, $false otherwise.
```