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

Get-SensitivityLabelMapping

Get-SensitivityLabelMapping の PowerShell cmdlet リファレンス。

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

コマンド

Get-SensitivityLabelMapping

説明

このコマンドは、移行元と移行先(サイトまたはライブラリのいずれか)の Sensitivity Label のマッピングを取得します。

移行元サイトと移行先サイトからマッピングを取得する

$srcSite = Connect-Site -Url "http://myfarm1/sites/mysourcesite"
$dstSite = Connect-Site -Url "http://myfarm1/sites/mydestinationsite"
$mappingSettings = Get-SensitivityLabelMapping -SourceSite $srcSite -DestinationSite $dstSite
$mappingSettings

# Example output:
# PropertyMappings :
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings :
# SiteTemplateMappings :
# SensitivityLabelMappings : <Default destination label> -> ParentDestSL \ ChildDestLabel1
# ParentSL \ ChildLabel1 -> ParentDestSL \ ChildDestLabel1
# ParentSL \ ChildLabel2 -> ParentDestSL \ ChildDestLabel2

構文

Get-SensitivityLabelMapping
-SourceSite <Site>
-DestinationSite <Site>
[-MappingSettings <MappingSettings>]

パラメーター

-DestinationSite <Site>

移行先のサイトを指定します。

必須?

True

デフォルト値

None

パイプライン入力を許可?

False

ワイルドカード文字を許可?

False

パラメーターセット名

(All)

エイリアス

None

-MappingSettings <MappingSettings>

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

必須?

False

デフォルト値

None

パイプライン入力を許可?

True (ByValue, ByPropertyName)

ワイルドカード文字を許可?

False

パラメーターセット名

(All)

エイリアス

None

-SourceSite <Site>

移行元のサイトを指定します。

必須?

True

デフォルト値

None

パイプライン入力を許可?

False

ワイルドカード文字を許可?

False

パラメーターセット名

(All)

エイリアス

None

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

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