Werbung

Herkunft

Kurzinformation

Stops a scheduled task

Syntax

<# .Synopsis Stops a scheduled task .Description Stops a scheduled task or a running task. Scheduled tasks can be supplied with Get-Task and .Example # Note, this is an example of the syntax. You should never stop all running tasks, # as they are used by the operating system. Instead, use a filter to get the tasks Get-RunningTask | Stop-Task #> param( # The Task to stop. The task can either be from the result of Get-ScheduledTask or Get-RunningTask [Parameter(ValueFromPipeline=$true,Mandatory=$true)] [__ComObject] $Task ) process { if ($Task.PSObject.TypeNames -contains 'System.__ComObject#{9c86f320-dee3-4dd1-b972-a303f26b061e}') { $Task.Stop(0) } else { $Task.Stop() } }

Beschreibung

Stops a scheduled task or a running task. Scheduled tasks can be supplied with Get-Task and

Links

Liste aller Commandlets Mehr über die Windows PowerShell

Bücher zur PowerShell

Buchcover Windows PowerShell 5.0 - Das Praxishandbuch (1. Auflage 2016/5. Auflage Gesamtreihe) Windows PowerShell 5.0 - Das Praxishandbuch (1. Auflage 2016/5. Auflage Gesamtreihe)
Autoren: Dr. Holger Schwichtenberg
erschienen 2016, 996 Seiten, 49,99 €
ISBN: 3446446435
Bestellung: Amazon.de oder im Buchhandel über ISBN 3446446435

Schulungen/Seminare

Offene Seminare zur PowerShell
In-House-Seminare zur PowerShell