Remarque : L'intégration PowerShell nécessite un abonnement Pro ou Enterprise à ShareGate Migrate. Elle n'est pas disponible avec le plan Essentials.
Lorsque vous exportez vos mappages de boîtes aux lettres et de destinataires dans l'application, ils sont séparés.
Vous pouvez utiliser le script suivant pour combiner les mappages que vous avez exportés depuis l'application pour PowerShell :
# Import the mailbox mappings CSV file
# -Path specifies the location of the mailbox mappings file
$sharegateMailboxesMapping = Import-Csv -Path ".\SharegateMailboxMappings.csv"
# Import the recipient mappings CSV file
# -Path specifies the location of the recipient mappings file
$sharegateRecipientsMapping = Import-Csv -Path ".\SharegateRecipientMappings.csv"
# Combine the mailbox and recipient mappings and remove duplicates
# Duplicates are removed based on the 'Source user id' property
$combinedCsv = $sharegateMailboxesMapping + $sharegateRecipientsMapping | Sort-Object "Source user id" -Unique
# Export the combined data to a new CSV file
# -Path specifies the location of the output file
# -NoTypeInformation omits type information from the exported CSV
$combinedCsv | Export-Csv -Path ".\ShareGatePowerShellMailboxMappings.csv" -NoTypeInformation
Adaptez -Path ".\SharegateMailboxesMapping.csv" et -Path ".\SharegateRecipientsMapping.csv" pour correspondre à l'emplacement et au nom de vos fichiers CSV respectifs.
Remarque : Les mappages sont déjà combinés lorsque vous les exportez dans PowerShell avec Export-MailboxMappings.
"Cet article a été traduit à l'aide de l'intelligence artificielle. En cas de doute, veuillez vous référer à la version originale en anglais."
