注: PowerShell 統合には、ShareGate Migrate のProまたはEnterpriseサブスクリプションが必要です。Essentialsプランでは利用できません。
コマンド
Import-SensitivityLabelMapping
説明
このコマンドは、ファイルから Sensitivity Label のマッピングをインポートします。
例
ファイルからマッピングをインポートする
$mappingSettings = Import-SensitivityLabelMapping -Path C:\MyMappings\MySensitivityLabelMappingsFileName.sgslm
$mappingSettings
# Example output:
# PropertyMappings :
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings :
# SiteTemplateMappings :
# SensitivityLabelMappings : <Default destination label> -> ParentSLDestSL1 \ ChildSLDestLabel1 (Unrestricted)
# ParentSLSrcSL1 \ ChildSLSrcLabel1 (Unrestricted) -> ParentSLDestSL1 \ ChildSLDestLabel1 (Unrestricted)
# ParentSLSrcSL2 \ ChildSLSrcLabel2 (Unrestricted) -> ParentSLDestSL2 \ ChildSLDestLabel2 (Unrestricted)
ファイルのマッピングと既存のマッピングをマージする
$mappingSettings = Set-SensitivityLabelMapping -Source "ParentSL \ ChildLabel1" -Destination "ParentDestSL \ ChildDestLabel1"
$mappingSettings
# Example output:
# PropertyMappings :
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings :
# SiteTemplateMappings :
# SensitivityLabelMappings : ParentSL \ ChildLabel1 -> ParentDestSL \ ChildDestLabel1
$mappingSettings = Import-SensitivityLabelMapping -MappingSettings $mappingSettings -Path C:\MyMappings\MySensitivityLabelMappingsFileName.sgslm
$mappingSettings
# Example output:
# PropertyMappings :
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings :
# SiteTemplateMappings :
# SensitivityLabelMappings : <Default destination label> -> ParentDestSL \ ChildDestLabel3
# ParentSL \ ChildLabel1 -> ParentDestSL \ ChildDestLabel2
# ParentSL \ ChildLabel2 -> ParentDestSL \ ChildDestLabel2
構文
Import-SensitivityLabelMapping
-Path <String>
[-MappingSettings <MappingSettings>]
パラメーター
-MappingSettings <MappingSettings>
マッピング設定を指定します。
必須? | False |
デフォルト値 | None |
パイプライン入力を許可? | True (ByValue, ByPropertyName) |
ワイルドカード文字を許可? | False |
パラメーターセット名 | (All) |
エイリアス | None |
-Path <String>
以前 ShareGate でエクスポートされたファイルパスを指定します。
必須? | True |
デフォルト値 | None |
パイプライン入力を許可? | False |
ワイルドカード文字を許可? | False |
パラメーターセット名 | (All) |
エイリアス | None |
この記事はAIによって翻訳されています。ご不明な点がある場合は、英語の原文をご確認ください。
