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

Remove-PropertyMapping

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

コマンド

Remove-PropertyMapping

説明

プロパティ マッピングを削除するコマンドです。

マッピングを削除する

# Initialize the mapping settings with the first property mapping
# Mapping "MyColumn1" to "MyColumn1" and designating it as a key column
$mappingSettings = Set-PropertyMapping -Source "MyColumn1" -Destination "MyColumn1" -Key

# Add a second property mapping to the existing mapping settings
# Mapping "MyColumn2" to "MyColumn2"
$mappingSettings = Set-PropertyMapping -MappingSettings $mappingSettings -Source "MyColumn2" -Destination "MyColumn2"

# Add a property mapping for multiple source columns to a single destination column
# Mapping "Col1", "Col2", and "Col3" to "MultipleColumn"
$mappingSettings = Set-PropertyMapping -MappingSettings $mappingSettings -Source Col1,Col2,Col3 -Destination MultipleColumn

# Remove the previously added mapping for the "MultipleColumn" destination
$mappingSettings = Remove-PropertyMapping -MappingSettings $mappingSettings -Destination MultipleColumn

# Output the final state of the mapping settings object
$mappingSettings

# Example output:
# PropertyMappings : KEY MyColumn1 -> MyColumn1
# MyColumn2 -> MyColumn2
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings :
# SiteTemplateMappings :
# SensitivityLabelMappings :

構文

Remove-PropertyMapping
-MappingSettings <MappingSettings>
-Destination <String>

パラメーター

-Destination <String>

移行先のプロパティを指定します。

必須かどうか

True

既定値

None

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

False

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

False

パラメーターセット名

(All)

エイリアス

None

-MappingSettings <MappingSettings>

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

必須かどうか

True

既定値

None

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

True (ByValue, ByPropertyName)

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

False

パラメーターセット名

(All)

エイリアス

None

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

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