注: PowerShellとの連携には、ShareGate MigrateのProまたはEnterpriseサブスクリプションが必要です。Essentialsプランでは利用できません。
コマンド
Import-ContentTypeMapping
説明
ファイルからコンテンツ タイプのマッピングをインポートするコマンドです。
注: PowerShellでテンプレートを作成することはできませんが、アプリでテンプレートを作成し、エクスポートしてから、次のスクリプトを使ってPowerShellでインポートできます。
例
ファイルからマッピングをインポートする
$mappingSettings = Import-ContentTypeMapping -Path "C:\\MyMappings\\MyContentTypeMappingsFileName.sgctm"$mappingSettings PropertyMappings : ContentTypeMappings : Audio -> Audio Basic Page -> <NO DESTINATION> Document -> Document Folder -> Folder Image -> <NO DESTINATION> Video -> <NO DESTINATION> UserAndGroupMappings : PermissionLevelMappings : SiteTemplateMappings : SensitivityLabelMappings :
ファイルからのマッピングを既存のマッピングとマージする
$mappingSettings = Set-ContentTypeMapping -Source Image -Destination Picture $mappingSettings = Set-ContentTypeMapping -MappingSettings $mappingSettings -Source Video -Destination Movie $mappingSettings = Set-ContentTypeMapping -MappingSettings $mappingSettings -Source "My Custom Content Type" -Ignore $mappingSettings = Import-ContentTypeMapping -MappingSettings $mappingSettings -Path "C:\\MyMappings\\MyContentTypeMappingsFileName.sgctm" $mappingSettings PropertyMappings : ContentTypeMappings : Audio -> Audio Basic Page -> <NO DESTINATION> Document -> Document Folder -> Folder Image -> Picture My Custom Content Type -> <NO DESTINATION> Video -> Movie UserAndGroupMappings : PermissionLevelMappings : SiteTemplateMappings : SensitivityLabelMappings :
構文
Import-ContentTypeMapping
-Path <String> [-MappingSettings <MappingSettings>]
パラメーター
-MappingSettings <MappingSettings>
マッピング設定を指定します。このコマンドを使用して、既存のマッピング設定オブジェクトに複数のマッピング設定を追加できます。詳細については、複数のマッピング ファイルを同時に使用するを参照してください。
必須かどうか | False |
既定値 | None |
パイプライン入力を許可するか | True (ByValue; ByPropertyName) |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | (All) |
エイリアス | None |
-Path <String>
ShareGateで以前にエクスポートされたファイル パスを指定します。
必須かどうか | True |
既定値 | None |
パイプライン入力を許可するか | False |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | (All) |
エイリアス | PSPath |
この記事はAIによって翻訳されています。ご不明な点がある場合は、英語の原文をご確認ください。
