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

Export-SiteTemplateMapping

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

コマンド

Export-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 "STS#0" for all languages
$mappingSettings = Set-SiteTemplateMapping -MappingSettings $mappingSettings -Source "Blank Site" -Destination "STS#0" -AllLanguages

# Add a site template mapping for "Blank Site" in French ("fr-fr") to "STS#0" in English ("en-us")
$mappingSettings = Set-SiteTemplateMapping -MappingSettings $mappingSettings -Source "Blank Site" -SourceLanguage "fr-fr" -Destination "STS#0" -DestinationLanguage "en-us"

# Export the site template mappings to a file
Export-SiteTemplateMapping -MappingSettings $mappingSettings -Path "C:\MyMappings\MySiteTemplateMappings"

移行元サイトと移行先サイトからマッピングをエクスポートする

# 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

# Export the retrieved site template mappings to a file
Export-SiteTemplateMapping -MappingSettings $mappingSettings -Path "C:\MyMappings\MySiteTemplateMappings"

構文

Export-SiteTemplateMapping
-MappingSettings <MappingSettings>
[-Path <String>]
[-Overwrite <SwitchParameter>]

パラメーター

-MappingSettings <MappingSettings>

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

必須かどうか

True

既定値

None

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

True (ByValue, ByPropertyName)

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

False

パラメーターセット名

(All)

エイリアス

None

-Overwrite <SwitchParameter>

ファイルが既に存在する場合に上書きすることを指定します。

必須かどうか

False

既定値

None

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

False

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

False

パラメーターセット名

(All)

エイリアス

None

-Path <String>

ファイルの保存先パスを指定します。

必須かどうか

False

既定値

None

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

False

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

False

パラメーターセット名

(All)

エイリアス

PSPath

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

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