Passer au contenu principal

Import-SensitivityLabelMapping

Référence de la commande PowerShell Import-SensitivityLabelMapping.

Remarque : L'intégration PowerShell nécessite un abonnement Pro ou Enterprise à ShareGate Migrate. Elle n'est pas disponible avec le plan Essentials.

Commande

Import-SensitivityLabelMapping

Description

Commande permettant d'importer les mappages d'étiquettes de confidentialité à partir d'un fichier.

Exemples

Importer des mappages à partir d'un fichier

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

Fusionner des mappages avec des mappages provenant d'un fichier

$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

Syntaxe

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

Paramètres

-MappingSettings <MappingSettings>

Spécifie les paramètres de mappage.

Obligatoire ?

Non

Valeur par défaut

Aucune

Accepte l'entrée du pipeline ?

Oui (ByValue, ByPropertyName)

Accepte les caractères génériques ?

Non

Nom du jeu de paramètres

(Tous)

Alias

Aucun

-Path <String>

Spécifie le chemin d'accès du fichier précédemment exporté avec ShareGate.

Obligatoire ?

Oui

Valeur par défaut

Aucune

Accepte l'entrée du pipeline ?

Non

Accepte les caractères génériques ?

Non

Nom du jeu de paramètres

(Tous)

Alias

Aucun

Cet article a été traduit à l'aide de l'intelligence artificielle. En cas de doute, veuillez consulter la version originale en anglais.

Avez-vous trouvé la réponse à votre question ?