You can import jobs that have been previously exported to xml using PowerShell.
To access the PowerShell cmdlets for connecting to SharePoint:
Open a PowerShell or PowerShell ISE session and add the PowerShell snap-ins for the application framework.
To import jobs from an xml file:
1.Select (from the PowerShell ISE Command Window) or enter Load-JobXml.
2.Select or enter the applicable parameters. Use the information in the following table for guidance.
Parameter |
Notes |
---|---|
XmlFilePath (Required) |
The path to the xml file containing the job(s) you want to import. |
ImportDuplicate (Optional) |
If you use this parameter and the job already exists in the Jobs Database, it will be imported with a new Job ID. If you omit this parameter and the job already exists in the Jobs Database, it will not be imported. For an xml file that contains multiple jobs, only those that are not in the Jobs Database will be imported. If trace logging is enabled, the detail will be logged in the file MetalogixGlobalLog.txt. |
Example Scripts with Results:
With ImportDuplicate parameter
Load-JobXml -XmlFilePath C:\Users\Administrator\Desktop\MigrateToSPO.xml -ImportDuplicate
6 job(s) successfully imported out of a total of 6 job(s), in 0m 0s
Without ImportDuplicate parameter
Load-JobXml -XmlFilePath C:\Users\Administrator\Desktop\MigrateToSPO.xml
4 job(s) successfully imported out of a total of 6 job(s), in 0m 0s
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center