注: PowerShellとの連携には、ShareGate MigrateのProまたはEnterpriseサブスクリプションが必要です。Essentialsプランでは利用できません。
コマンド
Export-SensitivityLabelMapping
説明
センシティビティラベルをファイルにエクスポートするコマンドです。
例
カスタムマッピングをエクスポートする
$mappingSettings = Set-SensitivityLabelMapping -Source "SourceSLParentLabel \ SourceSLChildLabel" -Destination "DestinationSLParentLabel \ DestinationSLChildLabel"
Export-SensitivityLabelMapping -MappingSettings $mappingSettings -Path C:\MyMappings\MySensitivityLabelsMappingsFileName
# Example output:
# The sensitivity label mappings exported with success to: C:\MyMappings\MySensitivityLabelsMappingsFileName.sgslm
移行元サイトと移行先サイトからマッピングをエクスポートする
$srcSite = Connect-Site -Url "http://myfarm1/sites/mysourcesite"
$dstSite = Connect-Site -Url "http://myfarm1/sites/mydestinationsite"
$mappingSettings = Get-SensitivityLabelMapping -SourceSite $srcSite -DestinationSite $dstSite
Export-SensitivityLabelMapping -MappingSettings $mappingSettings -Path C:\MyMappings\MySensitivityLabelSiteMappings
# Example output:
# The sensitivity label site mappings exported with success to: C:\MyMappings\MySensitivityLabelsSiteMappings.sgslm
構文
Export-SensitivityLabelMapping
-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) |
エイリアス | None |
この記事はAIによって翻訳されています。ご不明な点がある場合は、英語の原文をご確認ください。
