注: PowerShellとの連携には、ShareGate MigrateのProまたはEnterpriseサブスクリプションが必要です。Essentialsプランでは利用できません。
コマンド
Set-SiteTemplateMapping
説明
マッピング設定内のサイト テンプレート マッピングを追加または更新するコマンドです。
例
カスタム マッピングを設定する
# 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 :
移行元リストと移行先リストの既存のマッピングにカスタム マッピングを設定する
# 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 :
構文
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>]
パラメーター
-AllLanguages <SwitchParameter>
移行元と移行先にすべての言語を使用することを指定します。
必須かどうか | True |
既定値 | None |
パイプライン入力を許可するか | False |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | Default, DefaultWithDestination, SourceDestination, Source |
エイリアス | None |
-DefaultTemplate <SwitchParameter>
移行元に既定のサイト テンプレートを使用することを指定します。
必須かどうか | True |
既定値 | None |
パイプライン入力を許可するか | False |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | Default, DefaultWithDestinationAndCulture, DefaultWithCulture, DefaultWithDestination |
エイリアス | None |
-Destination <String>
移行先のサイト テンプレートを指定します。
必須かどうか | True |
既定値 | None |
パイプライン入力を許可するか | False |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | DefaultWithDestinationAndCulture, DefaultWithDestination, SourceDestination, SourceDestinationWithCulture |
エイリアス | None |
-DestinationLanguage <String>
移行先のサイト テンプレートの言語を指定します。
必須かどうか | True |
既定値 | None |
パイプライン入力を許可するか | False |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | DefaultWithDestinationAndCulture, SourceDestinationWithCulture |
エイリアス | None |
-Ignore <SwitchParameter>
サイト テンプレートを無視するように指定します。
必須かどうか | True |
既定値 | None |
パイプライン入力を許可するか | False |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | Default, DefaultWithCulture, Source, SourceWithCulture |
エイリアス | None |
-MappingSettings <MappingSettings>
マッピング設定を指定します。
必須かどうか | False |
既定値 | None |
パイプライン入力を許可するか | True (ByValue, ByPropertyName) |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | (All) |
エイリアス | None |
-Source <String>
移行元のサイト テンプレートを指定します。
必須かどうか | True |
既定値 | None |
パイプライン入力を許可するか | False |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | SourceDestination, Source, SourceWithCulture, SourceDestinationWithCulture |
エイリアス | None |
-SourceLanguage <String>
移行元のサイト テンプレートの言語を指定します。
必須かどうか | True |
既定値 | None |
パイプライン入力を許可するか | False |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | DefaultWithDestinationAndCulture, DefaultWithCulture, SourceWithCulture, SourceDestinationWithCulture |
エイリアス | None |
この記事はAIによって翻訳されています。ご不明な点がある場合は、英語の原文をご確認ください。
