Use this cmdlet to import a previously saved SyncTask object into PowerShell. This imported object can then be used in cmdlets like Add-SyncTask.
PowerShell
Import-SyncTask
- -FileName
Description
The Import-SyncTask cmdlet creates a SyncTask object from serialized data in a file that was created by Export-SyncTask. The resulting object can be further edited and either exported again or can be used with Add-SyncTask to add it to the task queue.
Examples
Example 1
PowerShell
Import-SyncTask -FileName 'c:\path\to\a-folder\saved sync task.task'
This example attempts to import the data contained in the referenced file as a SyncTask object.
Parameters
-FileName
The full path to the file containing the SyncTask data. Note that there is not a registered file extension for SyncTasks; any file extension may be used.
Output
This cmdlet places a SyncTask object on the current pipeline if the import of the data was successful. Any errors encountered during the import are reported as exceptions.
