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-PropertyMapping
Beschreibung
Der Befehl importiert die Eigenschaftenzuordnungen aus einer Datei.
Beispiele
Zuordnungen aus einer Datei importieren
# Import property mappings from a file
$mappingSettings = Import-PropertyMapping -Path "C:\MyMappings\MyPropertyMappingsFileName.sgpm"
# Display the imported property mappings
$mappingSettings
# Example output:
# PropertyMappings : Author -> Author
# KEY Created -> Created
# Editor -> Editor
# Modified -> Modified
# <NO SOURCE> -> MultipleColumn
# MyCustomField -> MyCustomField
# KEY Title -> Title
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings :
# SiteTemplateMappings :
Zuordnungen mit Zuordnungen aus einer Datei zusammenführen
# Set an initial property mapping for multiple source columns to a single destination column
$mappingSettings = Set-PropertyMapping -Source Col1,Col2,Col3 -Destination "Multiple Column"
# Import additional property mappings from a file and merge with the existing settings
$mappingSettings = Import-PropertyMapping -MappingSettings $mappingSettings -Path "C:\MyMappings\MyPropertyMappingsFileName.sgpm"
# Display the updated property mappings
$mappingSettings
# Example output:
# PropertyMappings : Author -> Author
# KEY Created -> Created
# Editor -> Editor
# Modified -> Modified
# Col1 -> Multiple Column
# Col2 -> ────────┘
# Col3 -> ────────┘
# MyCustomField -> MyCustomField
# KEY Title -> Title
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings :
# SiteTemplateMappings :
Syntax
Import-PropertyMapping
-Path <String>
[-MappingSettings <MappingSettings>]
Parameter
-MappingSettings <MappingSettings>
Gibt die Zuordnungseinstellungen an. Dieser Befehl fügt einem vorhandenen Zuordnungseinstellungsobjekt mehrere Zuordnungseinstellungen hinzu. Weitere Informationen finden Sie unter Mehrere Zuordnungsdateien gleichzeitig verwenden.
Erforderlich? | False |
Standardwert | None |
Pipelineeingabe zulässig? | True (ByValue, ByPropertyName) |
Platzhalterzeichen zulässig? | False |
Parametersatzname | (All) |
Aliase | None |
-Path <String>
Gibt den zuvor mit ShareGate exportierten Dateipfad an.
Erforderlich? | True |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | (All) |
Aliase | PSPath |
Dieser Artikel wurde mit künstlicher Intelligenz übersetzt. Bei Unklarheiten konsultieren Sie bitte die englische Originalversion.
