Herkunft

Kurzinformation

Gets the tasks currently running on the system

Syntax

<# .Synopsis Gets the tasks currently running on the system .Description A Detailed Description of what the command does .Example Get-RunningTask #> param( #The name of the task. By default, all running tasks are shown $Name = "*", # If this is set, hidden tasks will also be shown. # By default, only tasks that are not marked by Task Scheduler as hidden are shown. [Switch] $Hidden, # The name of the computer to connect to. $ComputerName, # The credential used to connect [Management.Automation.PSCredential] $Credential ) process { $scheduler = Connect-ToTaskScheduler -ComputerName $ComputerName -Credential $Credential if ($scheduler -and $scheduler.Connected) { $scheduler.GetRunningTasks($Hidden -as [bool]) | Where-Object { $_.Path -like $Name -or (Split-Path $_.Path -Leaf) -like $name } } }

Beschreibung

A Detailed Description of what the command does

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