Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The job configuration from Windows Task Scheduler® is converted to JSON files holding workflows, calendars and schedules that which can be imported and deployed to JS7.

The script writes JSON files to an output directory and creates a .zip archive for import to the JS7. Users can import and deploy workflows, schedules and calendars.

...

Specifies the name of an Agent that should execute the converted jobs. Typically this will be an Agent running on the Windows machine from which jobs are converted.

Required?true
Position?1
Default value
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

TaskName

-TaskName <String>

...

Accepts the name of a Joda time zone, see http://joda-time.sourceforge.net/timezones.html
The script does not convert dates according to this time zone, instead the specified time zone is added to the settings of workflows and schedules. Note that the JS7 Controller, Agents and JOC Cockpit can be operated in a time zone that which is different from to the time zone that the Windows Task Scheduler® is operated forin.

Required?false
Position?5
Default value
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

...

Converts the job ScheduledDefrag from the specified folder and writes the JSON files to a temporary directory that which is added to the C:/tmp/js7-import.zip archive for import in into JS7.

-------------------------- EXAMPLE 2 --------------------------

...

Converts jobs available in the root folder of Windows Task Scheduler® and writes the JSON files to the c:/tmp/jobs directory that which is added to the indicated .zip archive.

...

Converts job(s) with the given name from any folder and writes the JSON files to the c:/tmp/jobs directory that which is implicitly added to the js7-import.zip archive file in the working directory.

...

PS > ConvertFrom-WindowsTaskScheduler -AgentName windowsAgent -Timezone 'Europe/London' -OutputDirectory C:/tmp/jobs -ArchivePath C:/tmp/js7-import.zip

Converts all jobs from any all folders and writes the JSON files to the c:/tmp/jobs directory that which is added to the C:/tmp/js7-import.zip archive file for import in into JS7.
The specified Joda time zone is added to the workflows and schedules of converted jobs.

...