Link to home
Start Free TrialLog in
Avatar of Jaime Campos
Jaime CamposFlag for United States of America

asked on

How to transfer email from one account to another within Exchange 2007?

Hello,

I've got a user that has two email account within exchange and not sure how this happened. Now this user has been getting email sent to one account she doesn't use and had no idea she had. What I need to do is transfer her email from one account to the other and also maybe change her existing email address as well. Can an Expert provide me the instructions on how to accomplish this?

Thanks,

Jaime Campos
Avatar of endital1097
endital1097
Flag of United States of America image

run the following:
export-mailbox user2 -targetmailbox user1 -deletecontent



Avatar of Jaime Campos

ASKER

am I putting email address that I want to export on User2 and the target will be new email address (User1)? Will the -deletecontent delete all information in user 2 (unwanted email) mailbox? If I don't want to delete anything yet can I leave out that switch?
you can use either the alias or email address
yes, the deletecontent will remove from the source mailbox and can be excluded
This is what I typed into Exchange Management Shell

export-mailbox email@domain.com  -targetmailbox newemail@domain.com

this is what I got back.

cmdlet Export-Mailbox at command pipeline position 1
Supply values for the following parameters:
TargetFolder:

Any idea why?
ASKER CERTIFIED SOLUTION
Avatar of endital1097
endital1097
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Got an error on status message.

TargetFolder: export-mailbox lcabrera2@rapadocs.com\-targetmailbox lcabrera@rapa
docs.com

Confirm
Are you sure you want to perform this action?
Exporting mailbox content from the mailbox 'Dr. Lisa Cabrera' into the mailbox
for 'Dr. Lisa Cabrera (lcabrera@rapadocs.com)' inside folder '\export-mailbox
lcabrera2@rapadocs.com\-targetmailbox lcabrera@rapadocs.com\Recovered Data -
Dr. Lisa Cabrera - 9/13/2010 8:39:50 AM'. This operation may take a long time
to complete.
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help
(default is "Y"):A
Export-Mailbox : Error was found for Dr. Lisa Cabrera (lcabrera2@rapadocs.com)
because: Error occurred in the step: Creating target folder in the target mailb
ox. An unknown error has occurred., error code: -2147221233
At line:1 char:15
+ export-mailbox <<<<  lcabrera2@rapadocs.com -targetmailbox lcabrera@rapadocs.
com
    + CategoryInfo          : InvalidOperation: (0:Int32) [Export-Mailbox], Re
   cipientTaskException
    + FullyQualifiedErrorId : 458277B7,Microsoft.Exchange.Management.Recipient
   Tasks.ExportMailbox



Identity                         : RAPA.local/South East/Physicians/Dr. Lisa Ca
                                   brera
DistinguishedName                : CN=Dr. Lisa Cabrera,OU=Physicians,OU=South E
                                   ast,DC=RAPA,DC=local
DisplayName                      : Dr. Lisa Cabrera
Alias                            : lcabrera
LegacyExchangeDN                 : /o=RAPA Email/ou=Exchange Administrative Gro
                                   up (FYDIBOHF23SPDLT)/cn=Recipients/cn=lcabre
                                   ra1
PrimarySmtpAddress               : lcabrera2@rapadocs.com
SourceServer                     : Exchange07.RAPA.local
SourceDatabase                   : EXCHANGE07\First Storage Group\Mailbox Datab
                                   ase
SourceGlobalCatalog              : FILESERVER
SourceDomainController           :
TargetGlobalCatalog              : FILESERVER
TargetDomainController           :
TargetMailbox                    : RAPA.local/Users/Lisa Cabrera
TargetServer                     : Exchange07.RAPA.local
TargetDatabase                   : EXCHANGE07\First Storage Group\Mailbox Datab
                                   ase
MailboxSize                      : 17215KB
IsResourceMailbox                : False
SIDUsedInMatch                   :
SMTPProxies                      :
SourceManager                    :
SourceDirectReports              :
SourcePublicDelegates            :
SourcePublicDelegatesBL          :
SourceAltRecipient               :
SourceAltRecipientBL             :
SourceDeliverAndRedirect         :
MatchedTargetNTAccountDN         :
IsMatchedNTAccountMailboxEnabled :
MatchedContactsDNList            :
TargetNTAccountDNToCreate        :
TargetManager                    :
TargetDirectReports              :
TargetPublicDelegates            :
TargetPublicDelegatesBL          :
TargetAltRecipient               :
TargetAltRecipientBL             :
TargetDeliverAndRedirect         :
Options                          : Default
SourceForestCredential           :
TargetForestCredential           :
TargetFolder                     : \export-mailbox lcabrera2@rapadocs.com\-targ
                                   etmailbox lcabrera@rapadocs.com\Recovered Da
                                   ta - Dr. Lisa Cabrera - 9/13/2010 8:39:50 AM
PSTFilePath                      :
RsgMailboxGuid                   :
RsgMailboxLegacyExchangeDN       :
RsgMailboxDisplayName            :
RsgDatabaseGuid                  :
StandardMessagesDeleted          : 0
AssociatedMessagesDeleted        : 0
DumpsterMessagesDeleted          : 0
MoveType                         : Export
MoveStage                        : Move
StartTime                        : 9/13/2010 8:40:21 AM
EndTime                          : 9/13/2010 8:40:21 AM
StatusCode                       : -2147221233
StatusMessage                    : Error occurred in the step: Creating target
                                   folder in the target mailbox. An unknown err
                                   or has occurred.
ReportFile                       : C:\Program Files\Microsoft\Exchange Server\L
                                   ogging\MigrationLogs\export-Mailbox20100913-
                                   083948-8558219.xml
export-mailbox email@domain.com  -targetmailbox newemail@domain.com -targetfolder \
II'll try it.

I disabled the users old email account cause i wasn't able to sync her iPhone to new email account. It was partnered with old account. I removed partner relationship with old account and it still tried to setup old account. Now maybe I messed up, but I disabled old account and now I do not see old account within management console. I wanted to leave old account in place so i can forward all emails to new account. Now I'm stuck and not sure what to do. Now the iphone says connection to server failed. It's like it hasn't recognize the new email address on server and doesn't want to connect.  
when you disabled the account did you disable thru ad users and computers or thur exchange mgmt console?
the mgmt console removes the mailbox and you'll need to go to disconnected mialbox under recipient configuration to reconnect the mailbox
Exchange mgmt console. I got it. Why doesnt the iphone connect to new email address, is there some sort of refreash setting I need to perform?
once you remove the account from the phone you should be able to create a new mail account with the current smtp address for the user

get-mailbox user | fl primary*
I had to hard reset the device. It works now.Thanks so much for your help.