Skip to content

Commit 0461ff5

Browse files
authored
Update Add-SPMTTask.md
1 parent 7f149ed commit 0461ff5

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

spmt/spmt-ps/spmt/Add-SPMTTask.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ schema: 2.0.0
1010
# Add-SPMTTask
1111

1212
## SYNOPSIS
13-
Add a new migration task to the registered migration session. Currently there are three different types of tasks allowed: File share task, SharePoint task and a JSON defined task.
13+
Add a new migration task to the registered migration session. Currently there are three different types of tasks allowed: File share task, SharePoint task and JSON defined task.
1414
## SYNTAX
1515

1616
### FileShare
1717
```
18-
Add-SPMTTask -FileShareSource <String> -TargetSiteUrl <String> -TargetList <String>
19-
[-TargetListRelativePath <String>]
18+
Add-SPMTTask -FileShareSource <String> -TargetSiteUrl <String> -TargetList <String> [-TargetListRelativePath <String>]
2019
```
2120
### SharePointMigrateAll
2221
```
@@ -25,37 +24,38 @@ Add-SPMTTask -SharePointSourceCredential <PSCredential> -SharePointSourceSiteUrl
2524

2625
### SharePointMigrateSelected
2726
```
28-
Add-SPMTTask -SharePointSourceSiteUrl <string> -SharePointSourceCredential <pscredential> -SourceList <string> [-SourceListRelativePath <string>] -TargetSiteUrl <string> -TargetList <string> [-TargetListRelativePath <string>]
27+
Add-SPMTTask -SharePointSourceSiteUrl <string> -SharePointSourceCredential <PSCredential> -SourceList <string> [-SourceListRelativePath <string>] -TargetSiteUrl <string> -TargetList <string> [-TargetListRelativePath <string>]
2928
```
3029

3130
### Json
3231
```
33-
Add-SPMTTask [-JsonDefinition <string>]
34-
Add-SPMTTask -SharePointSourceCredential <PSCredential> [-JsonDefinition <string>]
35-
Json defined migration task sample 1:
36-
Customer scenario:migrate data from File Share or local disk to SPO.
32+
Add-SPMTTask [-JsonDefinition <string>] # This cmdlet is for File Share migration
33+
34+
Add-SPMTTask -SharePointSourceCredential <PSCredential> [-JsonDefinition <string>] # This cmdlet is for SharePoint migration
35+
36+
Json sample for File Share migration:
37+
{
38+
"SourcePath":"\\LocalOrFileShareDataSource",
39+
"TargetPath":"https://YourTargetSite",
40+
"TargetList":"Documents",
41+
"TargetListRelativePath":"subfolder"
42+
}
43+
44+
Json sample for SharePoint migration(lists only):
3745
{
38-
"SourcePath":"\\LocalOrFileShareDataSource",
39-
"TargetPath":"https://YourTargetSite",
40-
"TargetList":"Documents",
41-
"TargetListRelativePath":"subfolder"
42-
}
43-
Json defined migration task sample 2:
44-
Customer scenario:migrate on-prem site to SPO site.
45-
{
4646
"SourcePath":"http://YourOnPremSite",
4747
"TargetPath":"https://YourTargetSite",
48-
"Items":{
49-
"Lists":[
50-
{
48+
"Items":{
49+
"Lists":[
50+
{
5151
"SourceList":"sourceListName",
5252
"TargetList":"targetListName"
53-
}
53+
}
5454
]
5555
}
5656
}
57-
Json defined migration task sample 3:
58-
Customer scenario:migrate on-prem sites with subsites to SPO.
57+
58+
Json sample for SharePoint migration(lists and subsites):
5959
{
6060
"SourcePath":"http://YourOnPremSite",
6161
"TargetPath":"https://YourTargetSite",
@@ -84,12 +84,12 @@ Customer scenario:migrate on-prem sites with subsites to SPO.
8484
]
8585
}
8686
}
87-
Json defined migration task sample 4:
88-
Customer scenario:migrate on-prem subsite to SPO subsite.
89-
{
90-
"SourcePath":"http://youronpremsite/subsite2",
91-
"TargetPath":"https://yourtargetsite/targetSubSite2"
92-
}
87+
88+
Json sample for SharePoint migration(whole site):
89+
{
90+
"SourcePath":"http://youronpremsite/subsite2",
91+
"TargetPath":"https://yourtargetsite/targetSubSite2"
92+
}
9393
```
9494

9595
## DESCRIPTION

0 commit comments

Comments
 (0)