@@ -24,7 +24,7 @@ This cmdlet will start the registered SPMT migration.
24
24
25
25
### Example 1
26
26
```
27
- #Define On-prem SharePoint 2013 data source#
27
+ #Define SharePoint 2013 data source#
28
28
29
29
$Global:SourceSiteUrl = "http://YourOnPremSite/"
30
30
$Global:OnPremUserName = "Yourcomputer\administrator"
@@ -40,20 +40,24 @@ $Global:PassWord = ConvertTo-SecureString -String "YourSPOPassword" -AsPlainText
40
40
$Global:SPOCredential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $Global:UserName, $Global:PassWord
41
41
$Global:TargetListName = "TargetListName"
42
42
43
- #Define Fileshare data source#
43
+ #Define File Share data source#
44
44
$Global:FileshareSource = "YourFileShareDataSource"
45
+
45
46
#Import SPMT Migration Module#
46
47
Import-Module Microsoft.SharePoint.MigrationTool.PowerShell
48
+
47
49
#Register the SPMT session with SPO credentials#
48
50
Register-SPMTMigration -SPOCredential $Global:SPOCredential -Force
49
- #Add two tasks into the session. One on-prem and one file share task.#
51
+
52
+ #Add two tasks into the session. One is SharePoint migration task, and another is File Share migration task.#
50
53
Add-SPMTTask -SharePointSourceCredential $Global:SPCredential -SharePointSourceSiteUrl $Global:SourceSiteUrl -TargetSiteUrl $Global:SPOUrl -MigrateAll
51
- Add-SPMTTask -FileShareSource $Global:FileshareSource -TargetSiteUrl $Global:SPOUrl -TargetList "Documents"
52
- #Start Migration#
54
+ Add-SPMTTask -FileShareSource $Global:FileshareSource -TargetSiteUrl $Global:SPOUrl -TargetList $Global:TargetListName
55
+
56
+ #Start Migration in the console.#
53
57
Start-SPMTMigration
54
58
```
55
59
56
- Start a migration with one SharePoint migration task and one File Share migration task.
60
+ Start a migration with one SharePoint migration task and one File Share migration task.
57
61
58
62
## PARAMETERS
59
63
0 commit comments