diff --git a/Docs/close-task-manager.md b/Docs/close-task-manager.md new file mode 100644 index 00000000..95dccf07 --- /dev/null +++ b/Docs/close-task-manager.md @@ -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 [] + +[] + 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* diff --git a/Docs/open-task-manager.md b/Docs/open-task-manager.md index 6389257b..fa7dac61 100644 --- a/Docs/open-task-manager.md +++ b/Docs/open-task-manager.md @@ -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 diff --git a/README.md b/README.md index 0782f72d..f9199f5a 100644 --- a/README.md +++ b/README.md @@ -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)| diff --git a/Scripts/close-task-manager.ps1 b/Scripts/close-task-manager.ps1 new file mode 100755 index 00000000..96c575d0 --- /dev/null +++ b/Scripts/close-task-manager.ps1 @@ -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 diff --git a/Scripts/open-task-manager.ps1 b/Scripts/open-task-manager.ps1 index 108a79c5..9eebfa7f 100755 --- a/Scripts/open-task-manager.ps1 +++ b/Scripts/open-task-manager.ps1 @@ -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