PowerTip: Use PowerShell to Discover Tasks Associated with Scheduled Jobs

Doctor Scripto

Dr Scripto

Summary: Use Windows PowerShell to discover the tasks that are associated with your scheduled jobs.

Hey, Scripting Guy! Question How can I use Windows PowerShell to discover the scheduled tasks that are associated with my scheduled jobs?

Hey, Scripting Guy! Answer In Windows 8 or Windows Server 2012, use the Get-ScheduledTask cmdlet:

£> Get-ScheduledTask -TaskName test1 | Format-List TaskPath, TaskName, State

TaskPath : \Microsoft\Windows\PowerShell\ScheduledJobs\

TaskName : Test1

State    : Ready

On earlier operating systems, you need to look in the Task Scheduler, I’m afraid. 

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

    Leave a comment