Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Sort running services

$
0
0

Hey Nate,

This is yet another way of looking at your scheduled tasks.

$ErrorActionPreference = 'SilentlyContinue'
Set-Location $ENV:SystemRoot\System32\Tasks
Get-ChildItem | Where-Object {!$_.PSIsContainer} |
ForEach-Object {
[xml]$tasks = get-content $_.FullName
$NextRun = $tasks.task.Triggers.CalendarTrigger.StartBoundary
@{"Name"=$_.Name},
@{"Enabled"=$tasks.task.Settings.Enabled},
@{"Triggers"=$tasks.task.triggers},
@{"NextRun"=[datetime]$NextRun},
@{"Author"=$tasks.task.principals.Principal.Author}
} | FT -AutoSize


Viewing all articles
Browse latest Browse all 13067

Trending Articles