Hinweis: Für die PowerShell-Integration ist ein ShareGate Migrate Pro- oder Enterprise-Abonnement erforderlich. Sie ist im Essentials-Plan nicht verfügbar.
Befehl
Export-ContentTypeMapping
Beschreibung
Der Befehl exportiert die Inhaltstypzuordnungen in eine Datei.
Beispiele
Benutzerdefinierte Zuordnungen exportieren
# Set content type mapping for Image to Picture
$mappingSettings = Set-ContentTypeMapping -Source Image -Destination Picture
# Add mapping for Video to Movie
$mappingSettings = Set-ContentTypeMapping -MappingSettings $mappingSettings -Source "Video" -Destination "Movie"
# Add mapping for a custom content type and set it to ignore
$mappingSettings = Set-ContentTypeMapping -MappingSettings $mappingSettings -Source "My Custom Content Type" -Ignore
# Export the content type mappings to a specified file
Export-ContentTypeMapping -MappingSettings $mappingSettings -Path "C:\MyMappings\MyContentTypeMappingsFileName"
Zuordnungen aus einer Quellliste und einer Zielliste exportieren
# Connect to the source and destination sites
$srcSite = Connect-Site -Url "http://myfarm1/sites/mysourcesite"
$dstSite = Connect-Site -Url "http://myfarm1/sites/mydestinationsite"
# Get the source list from the source site
$srcList = Get-List -Name mysrclist -Site $srcSite
# Get the destination list from the destination site
$dstList = Get-List -Name mydstlist -Site $dstSite
# Retrieve content type mappings between the source and destination lists
$mappingSettings = Get-ContentTypeMapping -SourceList $srcList -DestinationList $dstList
# Export the content type mappings to a file
Export-ContentTypeMapping -MappingSettings $mappingSettings -Path "C:\MyMappings\MyContentTypeMappingsFileName"
Syntax
Export-ContentTypeMapping
-MappingSettings <MappingSettings>
[-Path <String>]
[-Overwrite <SwitchParameter>]
Parameter
-MappingSettings <MappingSettings>
Gibt die Zuordnungseinstellungen an.
Erforderlich? | True |
Standardwert | None |
Pipelineeingabe zulässig? | True (ByValue, ByPropertyName) |
Platzhalterzeichen zulässig? | False |
Parametersatzname | (All) |
Aliase | None |
-Overwrite <SwitchParameter>
Gibt an, dass die Datei überschrieben wird, falls sie bereits vorhanden ist.
Erforderlich? | False |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | (All) |
Aliase | None |
-Path <String>
Gibt den Pfad an, unter dem Sie die Datei speichern möchten.
Erforderlich? | False |
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.
