March 5th, 2014

PowerTip: Use PowerShell to Discover Tasks Associated with Scheduled Jobs

Doctor Scripto
Scripter

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. 

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback