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.
- Host: GitHub
- URL: https://github.com/aetonsi/pwsh__quit
- Owner: aetonsi
- License: wtfpl
- Created: 2022-08-29T19:46:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-07T12:00:16.000Z (over 3 years ago)
- Last Synced: 2025-08-24T22:25:28.166Z (6 months ago)
- Topics: powershell, process, pwsh, stop-process
- Language: PowerShell
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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.
```