Command
Import-SiteTemplateMapping
Description
The command to import the site template mappings from a file.
Index
Examples
Import mappings from file
$mappingSettings = Import-SiteTemplateMapping -Path "C:\MyMappings\MySiteTemplateMappingsFileName.sgwtm" $mappingSettings PropertyMappings : ContentTypeMappings : UserAndGroupMappings : PermissionLevelMappings : SiteTemplateMappings : English (United States) ACCSRV#0 -> <NO DESTINATION> ACCSRV#1 -> ACCSRV#1 ACCSRV#3 -> ACCSRV#3 ACCSRV#4 -> ACCSRV#4 ACCSRV#5 -> ACCSRV#5 ACCSRV#6 -> ACCSRV#6 BDR#0 -> BDR#0 BICenterSite#0 -> BICenterSite#0 BLANKINTERNET#0 -> CMSPUBLISHING#0 BLANKINTERNET#1 -> <NO DESTINATION> BLANKINTERNET#2 -> BLANKINTERNET#2 BLANKINTERNETCONTAINER#0 -> BLANKINTERNETCONTAINER#0 BLOG#0 -> BLOG#0 ... STS#0 -> STS#0 STS#1 -> STS#1 STS#2 -> STS#2 TENANTADMIN#0 -> <NO DESTINATION> visprus#0 -> visprus#0 WIKI#0 -> ENTERWIKI#0 French (France) ACCSRV#0 -> <NO DESTINATION> ACCSRV#1 -> ACCSRV#1 ACCSRV#3 -> ACCSRV#3 ACCSRV#4 -> ACCSRV#4 ACCSRV#5 -> ACCSRV#5 ACCSRV#6 -> ACCSRV#6 BDR#0 -> BDR#0 BICenterSite#0 -> BICenterSite#0 BLANKINTERNET#0 -> CMSPUBLISHING#0 BLANKINTERNET#1 -> <NO DESTINATION> BLANKINTERNET#2 -> BLANKINTERNET#2 BLANKINTERNETCONTAINER#0 -> BLANKINTERNETCONTAINER#0 BLOG#0 -> BLOG#0 ... STS#0 -> STS#0 STS#1 -> STS#1 STS#2 -> STS#2 TENANTADMIN#0 -> <NO DESTINATION> vispr#0 -> vispr#0 WIKI#0 -> ENTERWIKI#0
Merge mappings with mappings from file
$mappingSettings = Set-SiteTemplateMapping -DefaultTemplate -Destination "Team Site" -AllLanguages $mappingSettings = Import-SiteTemplateMapping -MappingSettings $mappingSettings -Path "C:\MyMappings\MySiteTemplateMappingsFileName.sgwtm" $mappingSettings PropertyMappings : ContentTypeMappings : UserAndGroupMappings : PermissionLevelMappings : SiteTemplateMappings : All Languages <Default Site Template> -> Team Site English (United States) ACCSRV#0 -> <NO DESTINATION> ACCSRV#1 -> ACCSRV#1 ACCSRV#3 -> ACCSRV#3 ACCSRV#4 -> ACCSRV#4 ACCSRV#5 -> ACCSRV#5 ACCSRV#6 -> ACCSRV#6 BDR#0 -> BDR#0 BICenterSite#0 -> BICenterSite#0 BLANKINTERNET#0 -> CMSPUBLISHING#0 BLANKINTERNET#1 -> <NO DESTINATION> BLANKINTERNET#2 -> BLANKINTERNET#2 BLANKINTERNETCONTAINER#0 -> BLANKINTERNETCONTAINER#0 BLOG#0 -> BLOG#0 ... STS#0 -> STS#0 STS#1 -> STS#1 STS#2 -> STS#2 TENANTADMIN#0 -> <NO DESTINATION> visprus#0 -> visprus#0 WIKI#0 -> ENTERWIKI#0 French (France) ACCSRV#0 -> <NO DESTINATION> ACCSRV#1 -> ACCSRV#1 ACCSRV#3 -> ACCSRV#3 ACCSRV#4 -> ACCSRV#4 ACCSRV#5 -> ACCSRV#5 ACCSRV#6 -> ACCSRV#6 BDR#0 -> BDR#0 BICenterSite#0 -> BICenterSite#0 BLANKINTERNET#0 -> CMSPUBLISHING#0 BLANKINTERNET#1 -> <NO DESTINATION> BLANKINTERNET#2 -> BLANKINTERNET#2 BLANKINTERNETCONTAINER#0 -> BLANKINTERNETCONTAINER#0 BLOG#0 -> BLOG#0 ... STS#0 -> STS#0 STS#1 -> STS#1 STS#2 -> STS#2 TENANTADMIN#0 -> <NO DESTINATION> vispr#0 -> vispr#0 WIKI#0 -> ENTERWIKI#0
Syntax
Import-SiteTemplateMapping-Path <String> [-MappingSettings <MappingSettings>]
Parameters
-MappingSettings <MappingSettings>
Specifies the mapping settings.
Required? | False |
Default value | None |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |
-Path <String>
Specifies the file path that was previously exported with Sharegate.
Required? | True |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | PSPath |