Hinweis: Die PowerShell-Integration erfordert ein ShareGate Migrate Pro- oder Enterprise-Abonnement. Sie ist im Essentials-Plan nicht verfügbar.
Mit PowerShell können Sie mehrere Zuordnungsdateien verwenden, um Ihre Objekte oder Inhalte zu migrieren.
Beispiel
# Import a Content Type Mapping to a new Mapping Settings
$mappingSettings = Import-ContentTypeMapping -Path "C:\MyMappings\ContentTypeMappings.sgctm"
# Add a Property Mapping
$mappingSettings = Import-PropertyMapping -Path "C:\MyMappings\PropertyMappings.sgpm" -MappingSettings $mappingSettings
# Add a Permission Level Mapping
$mappingSettings = Import-PermissionLevelMapping -Path "C:\MyMappings\PermissionLevelMappings.sgrm" -MappingSettings $mappingSettings
# Add a User and Group Mapping
$mappingSettings = Import-UserAndGroupMapping -Path "C:\MyMappings\UserAndGroupMappings.sgum" -MappingSettings $mappingSettings
# Display the entire mapping settings
$mappingSettings
Sie können das Objekt $mappingSettings nun in Ihrem Kopierbefehl verwenden. Wichtig zu wissen ist, dass jedes Cmdlet, das ein Zuordnungseinstellungsobjekt erzeugt, über einen Schalter namens -MappingSettings verfügt, mit dem Sie Zuordnungseinstellungen zu einem bestehenden Zuordnungseinstellungsobjekt hinzufügen können.
# Connect to the source site
$srcSite = Connect-Site -Url "http://myfarm1/sites/mysourcesite"
# Connect to the destination site
$dstSite = Connect-Site -Url "http://myfarm2/sites/mydestinationsite"
# Copy the source site to the destination site using mapping settings and merge option
$result = Copy-Site -Site $srcSite -DestinationSite $dstSite -Merge -MappingSettings $mappingSettings
# Display the result
$result
# Export the report to an Excel file
Export-Report $result -Path "C:\MyReports\CopySiteReports.xlsx"
Weitere Informationen finden Sie unter New Mapping Settings.
Tipp: Geben Sie das Ergebnis im Fenster aus oder exportieren Sie den Migrationsbericht in eine Excel-Datei. Weitere Informationen finden Sie unter Export-Report.
Dieser Artikel wurde mit künstlicher Intelligenz übersetzt. Bei Unklarheiten konsultieren Sie bitte die englische Originalversion.
