Cmdlet
Invoke-OfficeConversionJob
Plans or runs a saved conversion job through the same runner as Studio and the CLI.
Syntax
Invoke-OfficeConversionJob [-AllowEmpty] [-ItemResults] [-Path] <String> [-Plan] [-ReportPath <String>] [-RetryFailed] [-SummaryVariable <String>] [<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Requires PowerShell 7.4 or newer. Plan performs no output or checkpoint writes. Execution revalidates current inputs and retains completed artifacts after a partial failure or cancellation. Password environment references are resolved only for execution; values are not written to the job or reports.
Examples
Inspect selected files, destinations and prerequisites before executing a saved job.
Invoke-OfficeConversionJob -Path ./monthly.officejob.json -Plan
Invoke-OfficeConversionJob -Path ./monthly.officejob.json -ItemResults -SummaryVariable summary -ErrorAction StopResume a checkpoint job and retry recorded failures.
Invoke-OfficeConversionJob -Path ./monthly.officejob.json -RetryFailed -ErrorAction StopParameters
- -AllowEmpty SwitchParameter
- Allow execution to select no supported inputs without reporting an error.
- -ItemResults SwitchParameter
- Stream per-file outcomes instead of only the final bounded summary.
- -Path String
- Literal saved-job JSON path. Relative paths in the job resolve against this file's folder.
- -Plan SwitchParameter
- Inspect the job without converting files or creating output/checkpoint state.
- -ReportPath String
- New run-report JSON path outside the job's source, output and checkpoint trees. Existing files are preserved.
- -RetryFailed SwitchParameter
- Retry failed checkpoint items while verifying completed artifacts.
- -SummaryVariable String
- Variable receiving the completed plan or batch summary, including when ItemResults is selected.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.