Skip to content

Commit 2a1d209

Browse files
authored
Update Unregister-SPMTMigration.md
1 parent 67f67ab commit 2a1d209

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

spmt/spmt-ps/spmt/Unregister-SPMTMigration.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Remove the SPMT migration session created.
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,18 +41,23 @@ $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
60+
#Cancel the started migration and unregister the migration session.#
5661
Stop-SPMTMigration
5762
Unregister-SPMTMigration
5863
```

0 commit comments

Comments
 (0)