Skip to content

Commit 02fbef0

Browse files
committed
changed format of example to fix parse error
1 parent c708089 commit 02fbef0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,37 +74,37 @@ This example adds one File Share migration task and one SharePoint 2013 migratio
7474

7575
### EXAMPLE 2
7676

77-
Code snippets for bulk migration by loading the sample CSV with the name of spmt.csv:
77+
```powershell
7878
79+
# Code snippets for bulk migration by loading the sample CSV with the name of spmt.csv
7980
80-
```powershell
8181
$csvItems = import-csv "C:\spmt.csv" -Header c1,c2,c3,c4,c5,c6
8282
ForEach ($item in $csvItems)
8383
{
8484
Write-Host $item.c1
8585
Add-SPMTTask -FileShareSource $item.c1 -TargetSiteUrl $item.c4 -TargetList $item.c5 -TargetListRelativePath $item.c6
8686
}
87-
```
88-
Two migration tasks are defined in the file spmt.csv
8987
90-
```powershell
88+
# Two migration tasks are defined in the file spmt.csv
89+
90+
9191
D:\MigrationTest\Files\Average_1M\c,,,https://SPOSite.sharepoint.com,Documents,Test
9292
C:\work\Powershell\negative,,,https://SPOSite.sharepoint.com/,Documents,DocLibrary_SubfolderName
93-
```
94-
Code snippets for bulk migration by loading one JSON file:
93+
94+
# Code snippets for bulk migration by loading one JSON file:
95+
9596
9697
97-
```powershell
9898
$jsonItems = Get-Content -Raw -Path "C:\spmt.json" | ConvertFrom-Json
9999
ForEach ($taskItem in $jsonItems.Tasks)
100100
{
101101
$jsonString = ConvertTo-Json $taskItem -Depth 100
102102
Add-SPMTTask -JsonDefinition $jsonString -SharePointSourceCredential $onpremCredential
103103
}
104-
```
105-
Three migration tasks are defined in the file spmt.json.
106104
107-
```
105+
# Three migration tasks are defined in the file spmt.json.
106+
107+
108108
{
109109
"Tasks":[
110110
{

0 commit comments

Comments
 (0)