Command
Remove-SiteTemplateMapping
Description
The command to remove a site template mapping.
Index
Examples
Remove mappings
$mappingSettings = Set-SiteTemplateMapping -DefaultTemplate -Destination "Team Site" -AllLanguages $mappingSettings = Set-SiteTemplateMapping -MappingSettings $mappingSettings -Source "Blank Site" -Destination "Blog" -SourceLanguage "en-us" -DestinationLanguage "en-us" $mappingSettings = Set-SiteTemplateMapping -MappingSettings $mappingSettings -Source "Team Site" -Destination "MyCustomTeamSite" -AllLanguages $mappingSettings = Remove-SiteTemplateMapping -MappingSettings $mappingSettings -Source "Blank Site" -SourceLanguage 1033 $mappingSettings PropertyMappings : ContentTypeMappings : UserAndGroupMappings : PermissionLevelMappings : SiteTemplateMappings : All Languages <Default Site Template> -> Team Site Team Site -> MyCustomTeamSite
Syntax
Remove-SiteTemplateMapping-MappingSettings <MappingSettings> -DefaultTemplate <SwitchParameter> -AllLanguages <SwitchParameter>
Remove-SiteTemplateMapping -MappingSettings <MappingSettings> -Source <String> -SourceLanguage <String>
Remove-SiteTemplateMapping -MappingSettings <MappingSettings> -Source <String> -AllLanguages <SwitchParameter>
Remove-SiteTemplateMapping -MappingSettings <MappingSettings> -DefaultTemplate <SwitchParameter> -SourceLanguage <String>
Parameters
-AllLanguages <SwitchParameter>
Specifies the source site template use all languages.
Required? | True |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | False |
Parameter set name | Default, Source |
Aliases | None |
-DefaultTemplate <SwitchParameter>
Specifies to use default site template for the source.
Required? | True |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | False |
Parameter set name | Default, DefaultWithCulture |
Aliases | None |
-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 |
-Source <String>
Specifies the source site template.
Required? | True |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | False |
Parameter set name | SourceWithCulture, Source |
Aliases | None |
-SourceLanguage <String>
Specifies the source site template language.
Required? | True |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | False |
Parameter set name | SourceWithCulture, DefaultWithCulture |
Aliases | None |