Name
Get-SiteTemplateMapping
SYNTAX
Get-SiteTemplateMapping [-SourceSite] <Site> [-DestinationSite] <Site> [[-MappingSettings] <MappingSettings>]
DESCRIPTION
The command to get the site template mappings from a source and destination site pair.
PARAMETERS
-DestinationSite <Site>
Specifies the destination site.
Required? | True |
Position? | 2 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |
-MappingSettings <MappingSettings>
Specifies the mapping settings.
Required? | False |
Position? | 0 |
Default value | |
Accept pipeline input? | true (ByValue, ByPropertyName) |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |
-SourceSite <Site>
Specifies the source site.
Required? | True |
Position? | 1 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |
INPUTS
MappingSettings
OUTPUTS
MappingSettings
The mapping settings merged with the site template mappings from a source site and a destination site.
EXAMPLES
-------------- Example: Get mappings from a source site and a destination site --------------
$srcSite = Connect-Site -Url "http://myfarm1/sites/mysourcesite" $dstSite = Connect-Site -Url "http://myfarm1/sites/mydestinationsite" $mappingSettings = Get-SiteTemplateMapping -SourceSite $srcSite -DestinationSite $dstSite $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
-------------- Example: Merge mappings with mappings from a source site and a destination site --------------
$mappingSettings = Set-SiteTemplateMapping -DefaultTemplate -Destination "Team Site" -AllLanguages $srcSite = Connect-Site -Url "http://myfarm1/sites/mysourcesite" $dstSite = Connect-Site -Url "http://myfarm1/sites/mydestinationsite" $mappingSettings = Get-SiteTemplateMapping -MappingSettings $mappingSettings -SourceSite $srcSite -DestinationSite $dstSite $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