Add close-task-manager.ps1

This commit is contained in:
Markus Fleschutz 2021-10-21 16:23:59 +02:00
parent 6c5e2efc35
commit 52285d3c3b
5 changed files with 44 additions and 2 deletions

View File

@ -0,0 +1,26 @@
## close-task-manager.ps1 - Closes the Task Manager
This script closes the Task Manager application gracefully.
## Parameters
```powershell
close-task-manager.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
```
## Example
```powershell
PS> ./close-task-manager
```
## Notes
Author: Markus Fleschutz · License: CC0
## Related Links
https://github.com/fleschutz/PowerShell
*Generated by convert-ps2md.ps1 using the comment-based help of close-task-manager.ps1*

View File

@ -1,6 +1,6 @@
## open-task-manager.ps1 - Starts the Task Manager
This script starts the Task Manager application.
This script starts the Task Manager application (Windows only).
## Parameters
```powershell

View File

@ -104,6 +104,7 @@ Mega Collection of PowerShell Scripts
| [close-netflix.ps1](Scripts/close-netflix.ps1) | Closes the Netflix application | [Help](Docs/close-netflix.md) |
| [close-onedrive.ps1](Scripts/close-onedrive.ps1) | Closes Microsoft OneDrive | [Help](Docs/close-onedrive.md) |
| [close-system-settings.ps1](Scripts/close-system-settings.ps1) | Closes the System Settings window | [Help](Docs/close-system-settings.md)|
| [close-task-manager.ps1](Scripts/close-task-manager.ps1) | Closes the Task Manager | [Help](Docs/close-task-manager.md) |
| [close-thunderbird.ps1](Scripts/close-thunderbird.ps1) | Closes Mozilla Thunderbird | [Help](Docs/close-thunderbird.md) |
| [close-vlc.ps1](Scripts/close-vlc.ps1) | Closes the VLC media player application | [Help](Docs/close-vlc.md) |
| [close-windows-terminal.ps1](Scripts/close-windows-terminal.ps1) | Closes the Windows Terminal application | [Help](Docs/close-windows-terminal.md)|

15
Scripts/close-task-manager.ps1 Executable file
View File

@ -0,0 +1,15 @@
<#
.SYNOPSIS
Closes the Task Manager
.DESCRIPTION
This script closes the Task Manager application gracefully.
.EXAMPLE
PS> ./close-task-manager
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
& "$PSScriptRoot/close-program.ps1" "Task Manager" "Taskmgr" "Taskmgr.exe"
exit 0 # success

View File

@ -2,7 +2,7 @@
.SYNOPSIS
Starts the Task Manager
.DESCRIPTION
This script starts the Task Manager application.
This script starts the Task Manager application (Windows only).
.EXAMPLE
PS> ./open-task-manager
.NOTES