Command
Export-SiteTemplateMapping
Description
The command to export the site template mappings to a file.
Index
Examples
Export custom mappings
$mappingSettings = Set-SiteTemplateMapping -DefaultTemplate -Destination "Team Site" -AllLanguages $mappingSettings = Set-SiteTemplateMapping -MappingSettings $mappingSettings -Source "Blank Site" -Destination "STS#0" -AllLanguages $mappingSettings = Set-SiteTemplateMapping -MappingSettings $mappingSettings -Source "Blank Site" -SourceLanguage "fr-fr" -Destination "STS#0" -DestinationLanguage "en-us" Export-SiteTemplateMapping -MappingSettings $mappingSettings -Path "C:\MyMappings\MySiteTemplateMappings"
Export 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 Export-SiteTemplateMapping -MappingSettings $mappingSettings -Path "C:\MyMappings\MySiteTemplateMappings"
Syntax
Export-SiteTemplateMapping-MappingSettings <MappingSettings> [-Path <String>] [-Overwrite <SwitchParameter>]
Parameters
-MappingSettings <MappingSettings>
Specifies the mapping settings.
Required? | True |
Default value | None |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |
-Overwrite <SwitchParameter>
Specifies the file will be overwritten if already exists.
Required? | False |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |
-Path <String>
Specifies the path where you want to save the file.
Required? | False |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | PSPath |