Skip to content

Commit c75fefa

Browse files
authored
Update Show-SPMTMigration.md
1 parent 698dbe1 commit c75fefa

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

spmt/spmt-ps/spmt/Show-SPMTMigration.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ If the user starts the migration with -NoShow parameter, running the ‘Show-SPM
2525

2626
### Example 1
2727
```
28-
#Define On-prem SharePoint 2013 data source#
28+
#Define SharePoint 2013 data source#
2929
3030
$Global:SourceSiteUrl = "http://YourOnPremSite/"
3131
$Global:OnPremUserName = "Yourcomputer\administrator"
@@ -41,17 +41,21 @@ $Global:PassWord = ConvertTo-SecureString -String "YourSPOPassword" -AsPlainText
4141
$Global:SPOCredential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $Global:UserName, $Global:PassWord
4242
$Global:TargetListName = "TargetListName"
4343
44-
#Define Fileshare data source#
44+
#Define File Share data source#
4545
$Global:FileshareSource = "YourFileShareDataSource"
46+
4647
#Import SPMT Migration Module#
4748
Import-Module Microsoft.SharePoint.MigrationTool.PowerShell
49+
4850
#Register the SPMT session with SPO credentials#
4951
Register-SPMTMigration -SPOCredential $Global:SPOCredential -Force
50-
#Add two tasks into the session. One on-prem and one file share task.#
52+
53+
#Add two tasks into the session. One is SharePoint migration task, and another is File Share migration task.#
5154
Add-SPMTTask -SharePointSourceCredential $Global:SPCredential -SharePointSourceSiteUrl $Global:SourceSiteUrl -TargetSiteUrl $Global:SPOUrl -MigrateAll
52-
Add-SPMTTask -FileShareSource $Global:FileshareSource -TargetSiteUrl $Global:SPOUrl -TargetList "Documents"
53-
#Start Migration in the background#
54-
Start-SPMTMigration -NoShow
55+
Add-SPMTTask -FileShareSource $Global:FileshareSource -TargetSiteUrl $Global:SPOUrl -TargetList $Global:TargetListName
56+
57+
#Start Migration in the background.#
58+
Start-SPMTMigration -NoShow
5559
Show-SPMTMigration
5660
```
5761

0 commit comments

Comments
 (0)