Use this cmdlet to save a SyncTask object to a binary file.
PowerShell
Export-SyncTask
- -Task
- -FileName
- [-OverwriteExistingFile]
Description
The Save-SyncTask cmdlet is used to save a task object as a file. Exported task objects can be imported at a later time with the Import-SyncTask cmdlet.
The resulting file is a binary file that is not intended to be edited directly.
Examples
Example 1
PowerShell
Save-SyncTask -Task $task -FileName 'c:\some\folder\MyTask.task'
This example exports the $task object to the file named ‘MyTask.task’
NOTE: There are no file extensions associated with a sync task. You can have any file extension desired for the exported file.
Parameters
-Task
This parameter is the SyncTask object of which to export.
-FileName
This parameter is the full path and filename in which the task object should be saved
-OverwriteExistingFile
This switch parameter determines whether and exist file with the same name as provided in -FileName is overwritten, or fails to export.
