From c2fc981d4fc8a78bef37bbf4f41d1f75dd3768aa Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Wed, 20 Oct 2021 12:47:58 +0200 Subject: [PATCH] Update list-tasks.ps1 --- Scripts/list-tasks.ps1 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Scripts/list-tasks.ps1 b/Scripts/list-tasks.ps1 index 6189c3a7..b46e7fd4 100755 --- a/Scripts/list-tasks.ps1 +++ b/Scripts/list-tasks.ps1 @@ -1,15 +1,15 @@ <# .SYNOPSIS - Lists all Windows scheduler tasks + Lists all scheduled tasks .DESCRIPTION - This script lists all Windows scheduler tasks. + This script lists all scheduled tasks. .EXAMPLE PS> ./list-tasks - TaskPath TaskName State - -------- -------- ----- - \Microsoft\Windows\.NET Framework\ .NET Framework NGEN v4.0.30319 Ready - \Microsoft\Windows\.NET Framework\ .NET Framework NGEN v4.0.30319 64 Ready + TaskName State TaskPath + -------- ----- -------- + .NET Framework NGEN v4.0.30319 Ready \Microsoft\Windows\.NET Framework\ + .NET Framework NGEN v4.0.30319 64 Ready \Microsoft\Windows\.NET Framework\ ... .NOTES Author: Markus Fleschutz · License: CC0 @@ -18,7 +18,7 @@ #> try { - Get-ScheduledTask + Get-ScheduledTask | Format-Table -property TaskName,State,TaskPath exit 0 # success } catch { "⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"