Zum Hauptinhalt springen

Import-SensitivityLabelMapping

PowerShell-Referenz für das Cmdlet Import-SensitivityLabelMapping.

Hinweis: Für die PowerShell-Integration ist ein ShareGate Migrate Pro- oder Enterprise-Abonnement erforderlich. Sie ist im Essentials-Plan nicht verfügbar.

Befehl

Import-SensitivityLabelMapping

Beschreibung

Der Befehl importiert die Vertraulichkeitsbezeichnungszuordnungen aus einer Datei.

Beispiele

Zuordnungen aus einer Datei importieren

$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)

Zuordnungen mit Zuordnungen aus einer Datei zusammenführen

$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

Syntax

Import-SensitivityLabelMapping
-Path <String>
[-MappingSettings <MappingSettings>]

Parameter

-MappingSettings <MappingSettings>

Gibt die Zuordnungseinstellungen an.

Erforderlich?

False

Standardwert

None

Pipelineeingabe zulässig?

True (ByValue, ByPropertyName)

Platzhalterzeichen zulässig?

False

Parametersatzname

(All)

Aliase

None

-Path <String>

Gibt den Dateipfad an, der zuvor mit ShareGate exportiert wurde.

Erforderlich?

True

Standardwert

None

Pipelineeingabe zulässig?

False

Platzhalterzeichen zulässig?

False

Parametersatzname

(All)

Aliase

None

Dieser Artikel wurde mit künstlicher Intelligenz übersetzt. Bei Unklarheiten konsultieren Sie bitte die englische Originalversion.

Hat dies deine Frage beantwortet?