![]() ![]() I've modified the LegacyExchangeDN values in the imported csv and added the = "X500: section of the set cmd. The csv LegacyExchangeDN value in the csv I import has the following format: "/o=ExchangeLabs/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=555555555555555555555555555555555555555555555-1c" ![]() $mailUser | Select-Object $attributes | Export-Csv -Append -Path $modifiedOutputFile -NoTypeInformation $modifiedOutputFile = "C:\Scripts\AfterSet.csv" # Step 3: Bulk Get-MailUser after modification and export to CSV EmailAddresses = "X500:$($user.LegacyExchangeDN)"} $mailUser = Get-MailUser -Identity $user.Identity $mailUser | Select-Object $attributes | Export-Csv -Append -Path $outputFile -NoTypeInformation $mailUser = Get-MailUser -Identity $user.Identity | Select-Object $attributes $attributes = "Name", "LegacyExchangeDN", "ExchangeGUID", "UserPrincipalName", "PrimarySMTPAddress", "ExternalEmailAddress" $outputFile = "C:\Scripts\PriorToSet.csv" $csvFile = "C:\Scripts\SetMailUserBulk.csv" Also, I'm exporting the get results prior AND after the set cmd: # Step 1: Bulk Get-MailUser and export to CSV The issue I face is specifically related to the LegacyExchangeDN value not getting modified (even though the other values are modified).īelow is the script I made - keep in mind I'm importing a csv with the values I want to set. I've proven via Exchange Online that I can modify these values with the below cmds: set-mailuser -identity "CT Migration" -ExchangeGuid 55555555-5555-5555-5555-555555555555 When I perform this operation in bulk, the LegacyExchangeDN fails to change. The issue I have is in the Identity mapping phase where you prep the Mail Users in the target tenant by setting their Primary SMTP, ExchangeGUID, and LegacyExchangeDN. I'm performing a Cross-Tenant O365 migration using the Microsoft way. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |