PowerShell/Scripts/close-task-manager.ps1

18 lines
373 B
PowerShell
Raw Normal View History

2021-10-21 16:23:59 +02:00
<#
.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
#>
2021-10-29 12:51:47 +02:00
#Requires -RunAsAdministrator
2021-10-21 16:23:59 +02:00
& "$PSScriptRoot/close-program.ps1" "Task Manager" "Taskmgr" "Taskmgr.exe"
exit 0 # success