alias
Hello, I migrate user from Exchange 2003 to 3007 with the below script: $s=Get-Credential $t=Get-Credential $targetDB = "Exchser01\SG9\MIGRATION" $DC = "exchxxx.uk01.company.intra" $GC = "exchxxx.uk02.company.intra" $sourceDC = "exchhxx03.fr.companytobemigrated..." $sourceGC = "exchhxx03.fr.companytobemigrated..." $aliasList = "C:\Scripts\ScriptsMigr\mailbox.txt" Get-Content $aliasList | Get-Mailbox -DomainController $sourceDC -Credential $s | move-mailbox -TargetDatabase $targetDB -SourceForestGlobalCatalog $sourceGC -GlobalCatalog $GC -DomainController $DC -SourceMailboxCleanupOptions none -SourceForestCredential $s -TargetForestCredential $t -Confirm:$false The Migration works just fine. The thing that I happens is that the alias is not correct. it keeps the old alias, but my AD got the correct alias. I wanted to know if it would be possible to create a shell command/script to replace the old alias by the correct one, which is the one I have in the AD? Thanks to all in advance for you help. Graig
March 12th, 2010 4:17pm

Not sure I have been clear enough... so to simplify things: I have a good value on my AD, which is the User's Alias and I would need that correct Alias to replace the wrong one I have on the Exchange console management. Graig
Free Windows Admin Tool Kit Click here and download it now
March 12th, 2010 4:54pm

Not sure I have been clear enough... so to simplify things: I have a good value on my AD, which is the User's Alias and I would need that correct Alias to replace the wrong one I have on the Exchange console management. Graig You can use Set-Mailbox user@domain.com -Alias WhateverValueYouNeed This can be done in bulk like Get-Mailbox | Set-Mailbox _.Identity -Alias $_.PrimarySmtpAddress.ToString().Replace("@","_") This will set user_domain.com as Alias for a user who has user@domain.com as PrimarySmtpAddress. Regards, Regards,Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
March 12th, 2010 6:30pm

The users who do not have the correct alias are in a specific storage group: Get-Mailbox -ResultSize Unlimited | where {$_.database -like "Exchserxx01\SG08\migration"} | ft Displayname Would it be possible from the displayname to update the correct alias which is correct on the AD and not on the Exchange console? I would need to use a get-content as Iwould need to migrate 30 users and they will all have incorrect alias. Is that possible? I just which the command to modify the alias whithout having to type it. Thanks
Free Windows Admin Tool Kit Click here and download it now
March 15th, 2010 2:59pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics