Hinweis: Für die PowerShell-Integration ist ein ShareGate Migrate Pro- oder Enterprise-Abonnement erforderlich. Sie ist im Essentials-Plan nicht verfügbar.
Befehl
Set-SiteTemplateMapping
Beschreibung
Der Befehl fügt eine Websitevorlagenzuordnung in den Zuordnungseinstellungen hinzu oder aktualisiert sie.
Beispiele
Benutzerdefinierte Zuordnungen festlegen
# Set a default site template mapping for "Team Site" across all languages
$mappingSettings = Set-SiteTemplateMapping -DefaultTemplate -Destination "Team Site" -AllLanguages
# Add a site template mapping for "Blank Site" to "Team Site" for the English (US) language
$mappingSettings = Set-SiteTemplateMapping -MappingSettings $mappingSettings -Source "Blank Site" -Destination "Team Site" -SourceLanguage "en-us" -DestinationLanguage "en-us"
# Display the updated site template mappings
$mappingSettings
# Example output:
# PropertyMappings :
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings :
# SiteTemplateMappings : All Languages
# <Default Site Template> -> Team Site
# English (United States)
# Blank Site -> Team Site
# SensitivityLabelMappings :
Benutzerdefinierte Zuordnungen für vorhandene Zuordnungen aus einer Quellliste und einer Zielliste festlegen
# Connect to the source and destination sites
$srcSite = Connect-Site -Url "http://myfarm1/sites/mysourcesite"
$dstSite = Connect-Site -Url "http://myfarm1/sites/mydestinationsite"
# Retrieve existing site template mappings between the source and destination sites
$mappingSettings = Get-SiteTemplateMapping -SourceSite $srcSite -DestinationSite $dstSite
# Set a default site template mapping for "Team Site" across all languages
$mappingSettings = Set-SiteTemplateMapping -MappingSettings $mappingSettings -DefaultTemplate -Destination "Team Site" -AllLanguages
# Display the updated site template mappings
$mappingSettings
# Example output:
# 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
# SensitivityLabelMappings :
Syntax
Set-SiteTemplateMapping
-DefaultTemplate <SwitchParameter>
-Ignore <SwitchParameter>
-AllLanguages <SwitchParameter>
[-MappingSettings <MappingSettings>]
Set-SiteTemplateMapping
-DefaultTemplate <SwitchParameter>
-Destination <String>
-SourceLanguage <String>
-DestinationLanguage <String>
[-MappingSettings <MappingSettings>]
Set-SiteTemplateMapping
-DefaultTemplate <SwitchParameter>
-Ignore <SwitchParameter>
-SourceLanguage <String>
[-MappingSettings <MappingSettings>]
Set-SiteTemplateMapping
-DefaultTemplate <SwitchParameter>
-Destination <String>
-AllLanguages <SwitchParameter>
[-MappingSettings <MappingSettings>]
Set-SiteTemplateMapping
-Source <String>
-Destination <String>
-AllLanguages <SwitchParameter>
[-MappingSettings <MappingSettings>]
Set-SiteTemplateMapping
-Source <String>
-Ignore <SwitchParameter>
-AllLanguages <SwitchParameter>
[-MappingSettings <MappingSettings>]
Set-SiteTemplateMapping
-Source <String>
-Ignore <SwitchParameter>
-SourceLanguage <String>
[-MappingSettings <MappingSettings>]
Set-SiteTemplateMapping
-Source <String>
-Destination <String>
-SourceLanguage <String>
-DestinationLanguage <String>
[-MappingSettings <MappingSettings>]
Parameter
-AllLanguages <SwitchParameter>
Gibt an, dass für die Quelle und das Ziel alle Sprachen verwendet werden.
Erforderlich? | True |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | Default, DefaultWithDestination, SourceDestination, Source |
Aliase | None |
-DefaultTemplate <SwitchParameter>
Gibt an, dass für die Quelle die Standard-Websitevorlage verwendet wird.
Erforderlich? | True |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | Default, DefaultWithDestinationAndCulture, DefaultWithCulture, DefaultWithDestination |
Aliase | None |
-Destination <String>
Gibt die Ziel-Websitevorlage an.
Erforderlich? | True |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | DefaultWithDestinationAndCulture, DefaultWithDestination, SourceDestination, SourceDestinationWithCulture |
Aliase | None |
-DestinationLanguage <String>
Gibt die Sprache der Ziel-Websitevorlage an.
Erforderlich? | True |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | DefaultWithDestinationAndCulture, SourceDestinationWithCulture |
Aliase | None |
-Ignore <SwitchParameter>
Gibt an, dass die Websitevorlage ignoriert werden soll.
Erforderlich? | True |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | Default, DefaultWithCulture, Source, SourceWithCulture |
Aliase | None |
-MappingSettings <MappingSettings>
Gibt die Zuordnungseinstellungen an.
Erforderlich? | False |
Standardwert | None |
Pipelineeingabe zulässig? | True (ByValue, ByPropertyName) |
Platzhalterzeichen zulässig? | False |
Parametersatzname | (All) |
Aliase | None |
-Source <String>
Gibt die Quell-Websitevorlage an.
Erforderlich? | True |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | SourceDestination, Source, SourceWithCulture, SourceDestinationWithCulture |
Aliase | None |
-SourceLanguage <String>
Gibt die Sprache der Quell-Websitevorlage an.
Erforderlich? | True |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | DefaultWithDestinationAndCulture, DefaultWithCulture, SourceWithCulture, SourceDestinationWithCulture |
Aliase | None |
Dieser Artikel wurde mit künstlicher Intelligenz übersetzt. Bei Unklarheiten konsultieren Sie bitte die englische Originalversion.
