powershellscheduled-tasks

Are 'Scheduled Job" and "Scheduled Task" the same thing in Powershell context?


I am trying to create a scheduled task from Powershell.

I was readin the document for cmdlet: New-ScheduledJobOption.

And I am a bit confused...

Question: Are 'Scheduled Job" and "Scheduled Task" the same thing in Powershell context? Or there is a difference?


Solution

  • So just to put an actual answer out there, in addition to the article Valamas put out:

    In a PowerShell context Scheduled Jobs and Scheduled Tasks are not the same thing. From a task scheduler perspective they are exactly the same thing.

    The PowerShell team provided a toolset for creating a special type of job that would be stored in the Task scheduler library. The Scheduled Jobs cmdlets will not allow you to interact with regular scheduled tasks. The Task Scheduler will let you interact with regular tasks and scheduled jobs interchangeably.