メインコンテンツにスキップ

Get-SiteTemplateMapping

注: PowerShellとの連携には、ShareGate MigrateのProまたはEnterpriseサブスクリプションが必要です。Essentialsプランでは利用できません。

コマンド

Get-SiteTemplateMapping

説明

移行元サイトと移行先サイトのペアからサイト テンプレート マッピングを取得するコマンドです。

移行元サイトと移行先サイトからマッピングを取得する

# Connect to the source and destination sites
$srcSite = Connect-Site -Url "http://myfarm1/sites/mysourcesite"
$dstSite = Connect-Site -Url "http://myfarm1/sites/mydestinationsite"

# Retrieve site template mappings between the source and destination sites
$mappingSettings = Get-SiteTemplateMapping -SourceSite $srcSite -DestinationSite $dstSite

# Display the retrieved site template mappings
$mappingSettings

# Example output:
# 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
# SensitivityLabelMappings :

移行元サイトと移行先サイトからのマッピングを既存のマッピングとマージする

# Set a default site template mapping for "Team Site" across all languages
$mappingSettings = Set-SiteTemplateMapping -DefaultTemplate -Destination "Team Site" -AllLanguages

# Connect to the source and destination sites
$srcSite = Connect-Site -Url "http://myfarm1/sites/mysourcesite"
$dstSite = Connect-Site -Url "http://myfarm1/sites/mydestinationsite"

# Retrieve site template mappings between the source and destination sites, including the default mapping
$mappingSettings = Get-SiteTemplateMapping -MappingSettings $mappingSettings -SourceSite $srcSite -DestinationSite $dstSite

# Display the retrieved 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 :

構文

Get-SiteTemplateMapping
-SourceSite <Site>
-DestinationSite <Site>
[-MappingSettings <MappingSettings>]

パラメーター

-DestinationSite <Site>

移行先のサイトを指定します。

必須かどうか

True

既定値

None

パイプライン入力を許可するか

False

ワイルドカード文字を許可するか

False

パラメーターセット名

(All)

エイリアス

None

-MappingSettings <MappingSettings>

マッピング設定を指定します。

必須かどうか

False

既定値

None

パイプライン入力を許可するか

True (ByValue, ByPropertyName)

ワイルドカード文字を許可するか

False

パラメーターセット名

(All)

エイリアス

None

-SourceSite <Site>

移行元のサイトを指定します。

必須かどうか

True

既定値

None

パイプライン入力を許可するか

False

ワイルドカード文字を許可するか

False

パラメーターセット名

(All)

エイリアス

None

この記事はAIによって翻訳されています。ご不明な点がある場合は、英語の原文をご確認ください。

こちらの回答で解決しましたか?