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

Set-SensitivityLabelMapping

Set-SensitivityLabelMappingのPowerShellコマンドレットリファレンス。

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

コマンド

Set-SensitivityLabelMapping

説明

マッピング設定にセンシティビティラベルマッピングを追加または更新するコマンドです。

カスタムマッピングを設定する

$mappingSettings = Set-SensitivityLabelMapping -Source "ParentSL \ ChildLabel1" -Destination "ParentDestSL \ ChildDestLabel1"
$mappingSettings = Set-SensitivityLabelMapping -MappingSettings $mappingSettings -Source "ParentSL \ ChildLabel2" -Ignore
$mappingSettings

# Example output:
# PropertyMappings :
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings :
# SiteTemplateMappings :
# SensitivityLabelMappings : ParentSL \ ChildLabel1 -> ParentDestSL \ ChildDestLabel1
# ParentSL \ ChildLabel2 -> <NO DESTINATION>

移行元サイトと移行先サイトの既存のマッピングにカスタムマッピングを設定する

$srcSite = Connect-Site -Url "http://myfarm1/sites/mysourcesite"
$dstSite = Connect-Site -Url "http://myfarm1/sites/mydestinationsite"
$mappingSettings = Get-SensitivityLabelMapping -SourceSite $srcSite -DestinationSite $dstSite
$mappingSettings = Set-SensitivityLabelMapping -MappingSettings $mappingSettings -Source "ParentSL \ ChildLabel3" -Destination "ParentDestSL \ ChildDestLabel1"
$mappingSettings = Set-SensitivityLabelMapping -MappingSettings $mappingSettings -Source "ParentSL \ ChildLabel2" -Ignore
$mappingSettings

# Example output:
# PropertyMappings :
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings :
# SiteTemplateMappings :
# SensitivityLabelMappings : ParentSL \ ChildLabel1 -> ParentDestSL \ ChildDestLabel1
# ParentSL \ ChildLabel2 -> <NO DESTINATION>
# ParentSL \ ChildLabel3 -> ParentDestSL \ ChildDestLabel1

構文

Set-SensitivityLabelMapping
-Source <String>
-Destination <String>
[-MappingSettings <MappingSettings>]
Set-SensitivityLabelMapping
-Source <String>
-Ignore <SwitchParameter>
[-MappingSettings <MappingSettings>]
Set-SensitivityLabelMapping
-DefaultDestinationLabel <SwitchParameter>
-Destination <String>
[-MappingSettings <MappingSettings>]

パラメーター

-DefaultDestinationLabel <SwitchParameter>

明示的なマッピングがない移行元ラベルに適用される、既定の移行先センシティビティラベルを指定します。

必須かどうか

True

既定値

None

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

False

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

False

パラメーターセット名

(All)

エイリアス

None

-Destination <String>

移行先のセンシティビティラベルを指定します。

必須かどうか

True

既定値

None

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

False

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

False

パラメーターセット名

(All)

エイリアス

None

-Ignore <SwitchParameter>

センシティビティラベルを無視することを指定します。

必須かどうか

True

既定値

None

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

False

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

False

パラメーターセット名

(All)

エイリアス

None

-MappingSettings <MappingSettings>

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

必須かどうか

False

既定値

None

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

True (ByValue, ByPropertyName)

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

False

パラメーターセット名

(All)

エイリアス

None

-Source <String>

移行元のセンシティビティラベルを指定します。

必須かどうか

True

既定値

None

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

False

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

False

パラメーターセット名

(All)

エイリアス

None

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

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