Play with the Windows Task Scheduler

Play with the Windows Task Scheduler and XML

You will find in this post two scripts to :

  • create scheduled tasks on remote computers
  • get scheduled tasks on remote computers

These actions will be performed using xml and the COM object Schedule.Service. I will write another article on how to manage scheduled tasks with the builtin Powershell cmdlets get-scheduledTask and set-scheduledtask available since Windows 2012 OS.

Create a scheduled task using a xml file on the remote computers server01 and server02:

List the user-defined (Principal ID = Author) scheduled tasks and their properties on the remote servers “server01” and “server02” :

<>

My Powershell script categories

Leave a Reply

Your email address will not be published. Required fields are marked *