注: PowerShellとの連携には、ShareGate MigrateのProまたはEnterpriseサブスクリプションが必要です。Essentialsプランでは利用できません。
コマンド
Export-ContentTypeMapping
説明
コンテンツ タイプ マッピングをファイルにエクスポートするコマンドです。
例
カスタム マッピングをエクスポートする
# Set content type mapping for Image to Picture
$mappingSettings = Set-ContentTypeMapping -Source Image -Destination Picture
# Add mapping for Video to Movie
$mappingSettings = Set-ContentTypeMapping -MappingSettings $mappingSettings -Source "Video" -Destination "Movie"
# Add mapping for a custom content type and set it to ignore
$mappingSettings = Set-ContentTypeMapping -MappingSettings $mappingSettings -Source "My Custom Content Type" -Ignore
# Export the content type mappings to a specified file
Export-ContentTypeMapping -MappingSettings $mappingSettings -Path "C:\MyMappings\MyContentTypeMappingsFileName"
移行元リストと移行先リストからマッピングをエクスポートする
# Connect to the source and destination sites
$srcSite = Connect-Site -Url "http://myfarm1/sites/mysourcesite"
$dstSite = Connect-Site -Url "http://myfarm1/sites/mydestinationsite"
# Get the source list from the source site
$srcList = Get-List -Name mysrclist -Site $srcSite
# Get the destination list from the destination site
$dstList = Get-List -Name mydstlist -Site $dstSite
# Retrieve content type mappings between the source and destination lists
$mappingSettings = Get-ContentTypeMapping -SourceList $srcList -DestinationList $dstList
# Export the content type mappings to a file
Export-ContentTypeMapping -MappingSettings $mappingSettings -Path "C:\MyMappings\MyContentTypeMappingsFileName"
構文
Export-ContentTypeMapping
-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によって翻訳されています。ご不明な点がある場合は、英語の原文をご確認ください。
