Importing and Exporting Mail and User Accounts in Outlook 2007
Productivity, Tips Tagged office, outlook, outlook 2007, password recovery October 14th, 2008Outlook 2007 did away with the export account information that was present in earlier editions. So, if a user with one account moves machines, it's often faster to just recreate the account on the new machine. However, if a user has 8 accounts (like one did today) it's time to find a better way.
That better way is hidden the registry.
On The Old Machine
Outlook 2007 is nice enough to put all of its account info for each profile under one key.
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\
So, first off, close Outlook if it's running.
To export your Outlook account information, we just need to export that magic key.
- Open Registry Editor.
- Select the key that you want to save as a file.
- On the File menu, click Export.
- In the Export Registry File dialog box, in Save in, click the drive, folder, or network computer and folder where you want to save the hive.
- In File name, enter a name for the key. (outlook_profile.reg would work great.)
- In Save as type, make sure it's set as Registration Files (*.reg)
- Click Save.
Caveats: Every profile on your system under your logon will be exported.
To move your old mail, you'll need to copy your PST file to the new machine.
- Click Start, Run
- Type %userprofile%\local settings\application data\microsoft\outlook
- Click OK
- In that folder there will be some *.pst files. Copy (don't move!) them to a removable drive or a network share. The one you're most likely concerned with is outlook.pst
On The New Machine
First, we need to import the profile information.
- Double-click the file (outlook_profiles.reg) you exported on the old machine. That will import the new information into the registry. (Simple!)
Next, we need to get your data file back over.
- Click Start, Run
- Type %userprofile%\local settings\application data\microsoft\outlook
- Click OK
- Copy (don't move!) the *.pst files you found on the old machine. The one you're most likely concerned with is outlook.pst
Lastly, we need to set Outlook to use the profile from the old machine.
- Open Control Panel.
- Open the Mail applet.
- Click on the Show Profiles button.
- Choose the profile name that matches the one you used to use from the "Always use this profile" dropdown.
- Click OK.
Now, when you open Outlook, you should have your old mail and the mail accounts all set up and ready to go.
Passwords
Outlook on the new machine mightwill ask you for passwords the first time it does a send/receive on all non-Exchange accounts.
If you know the passwords, awesome. If not, you'll need to find them out, and we go back to the old machine to do so.
What we need to do is peer behind the dots that Microsoft uses in their password boxes. To do so, we need a piece of freeware that will do that for us.
Passware offers a utility, Asterisk Key, which will do the job.
- Download, install and run the tool on the old machine using this link.
- Open Notepad.
- Open Outlook 2007.
- Click Tools, Account Settings.
- Double-click the account you don't know the password to.
- Go into Asterisk Key and click the RECOVER icon on the toolbar.
- The tool will reveal your password for that account. Click the COPY LINK next to the revealed password.
- PASTE the password into your notepad document.
- Repeat Steps 5-8 as necessary.
- Save the Notepad document so you can move it to the new machine.
- At the new machine, paste the passwords from the Notepad document into Outlook.
That oughta do it.


January 12th, 2009 at 1:30 pm
Thanks, by the way, full key doesn’t show up on this template, only via source
January 14th, 2009 at 11:33 am
D’oh! All fixed.
February 11th, 2009 at 8:10 pm
thanks!
February 11th, 2009 at 10:30 pm
You’re welcome! I actually had occasion to use this again yesterday, and was glad I wrote the procedure down somewhere!
February 27th, 2009 at 7:52 am
Great post Jeff! The only problem I faced on WinVista with Outlook 2007 was that I had to type the passwords of all 16 accounts I had created.
Thank you!
February 27th, 2009 at 10:15 am
Dimitris,
I’m finding that the phrase “Outlook on the new machine might ask you for passwords…” is wishful thinking. In the times I’ve used this, I don’t think it’s ever NOT asked me for the password — except in times when we’re only importing Exchange mailboxes. POP3 and IMAP passwords don’t seem to be stored in with the profile info.
August 10th, 2009 at 2:15 am
Your article was of great help. I was able to retrieve the account PW, which I thught was lost forever. What a relief! Phew!!
November 16th, 2009 at 1:28 am
Is it possible to import the folders from Windows Live Mail into Outlook 2007.
Ken
January 24th, 2010 at 11:03 am
Thanks, this saved me a lot of time!
March 29th, 2010 at 2:34 am
@ Mangoes98 : I know this is a bit late , but for anyone else with Mangoes problem . Think reverse . Open Windows Live Mail , Then click on file then export then Messages.
Export as MICROSOFT EXCHANGE ( <– Dumb I know but it works ) . It will then ask you what folders you want to export . I just select all but whatever ones you want to send to outlook . Then it sends them in the folders that they are in .DONE !
April 26th, 2010 at 5:32 am
This is the ONLY information I found that works after an hour of trawling and trying several things to move many accounts from 2007 to 2007. Thank you!
May 20th, 2010 at 3:58 pm
Thanks a lot! It does work like a charm, and I’d spent an hour trying to get my head around this before. Bookmarked =)
June 6th, 2010 at 10:46 am
Hi, I have a question about profiles in Outlook 2007. In my default profile I have 6 mail accounts. I want to create a new profile and move 3 of the accounts to the new profile. How can I do it in a simple way? (The manually way of re creating them in the new profile is part of the age stone…)
June 6th, 2010 at 11:06 am
Basically, you want to copy the keys from the one profile to the other.
To do it using REGEDIT, I would create my new profile in Outlook and then go into REGEDIT and look at the PROFILE key — you should see one with a bunch of folders under it (the old profile) and one with not many (if any) folders under it.
Dump the old key as outlined in the article, but make note of the key of the NEW folder, and do a search/replace in the .reg file to replace the old ProfileID with the new one. Reimport, and all those folders should then show up under the new profile as well. Delete the accounts under the new profile you don’t need, and be on your way…
July 2nd, 2010 at 3:53 am
Hi
I was directed to this site after doing a Google search for a way to backup and restore Outlook 2007 account settings from a (friend’s) faulty PC to a new one.
The problem is that if the old PC is not even starting up properly (I am using a Vista Startup Disk to access the files on the HDD), how am I going to get into the registry??!
Personally I use Mozilla Thunderbird as my email client (and it support IMAP emails unless Outlook which “does” – but has multiple issues and error ‘warnings’ when working with an IMAP server; trying to get one to move to a MS Exchange server instead, methinks.
To move Thunderbird emails and settings to a new PC, simply copy the the Thunderbird Profile folder from the old PC and place it in the Profile folder created after starting up Thunderbird for the first time and closing it. All account settings and mail are instantly available on restart after the copy. How easy is that!
I am a fairly technical Windows user but this registry stuff is not clear cut; imagine an average user trying to work out what to do with the Windows Registry just to get their Outlook working on their new PC!!! Microsoft sux. Big time!! But we all know that, right?
July 2nd, 2010 at 5:42 am
Hello Jeff
I am so happy that you worked this out and posted it here, I just so needed it, it’s a quick, clean and easy way to backup and restore your email accounts. Bravo!!
Thanks a mil
Massi….
July 14th, 2010 at 3:43 pm
If you can’t get the PC to boot, you’re pretty much screwed — recovery becomes much more difficult.
If you have access to Microsoft DaRT (Disaster and Recovery Toolset) you can try to boot into that and edit a registry there. There’s also some tools available via the Ultimate Boot CD for Windows that might help when working with non-booting systems.
Lastly, you can always yank the drive and put it into an external enclosure and load the registry hive with regedit in the new OS.
August 20th, 2010 at 10:56 am
Thanks! This worked wonders! Just what I needed!
October 4th, 2010 at 8:10 am
Thanks buddy.!!
October 22nd, 2010 at 9:35 pm
[...] http://www.jephens.com/2008/10/14/importing-and-exporting-mail-and-user-accounts-in-outlook-2007/ [...]
November 10th, 2010 at 5:19 pm
Thanks for the information. Under Windows 7 the directories where the Outlook PST file is stored are slightly different from what you listed, but easy enough to adjust so that this technique works for Windows 7 Professional.
January 10th, 2011 at 5:55 pm
[...] left over which come and bite you in the arse at a later date. I don't know if it'll work but this is worth a shot. A friend has used that for a 2007 – 2007 move but I don't know if Outlook 2010 [...]
January 19th, 2011 at 8:44 am
You just made my XP to Win7 upgrade a breeze. You rock!
January 26th, 2011 at 12:14 pm
Great advice, the outlook profile registry key is the way to go, many thanks – saved me a lot of time.
February 15th, 2011 at 6:54 am
Thanks, I lost my Hotmail account password which I have configured in my outlook, and with the help of your site, and the Asterisk key tool I was able to recover it.
March 13th, 2011 at 6:09 pm
Hi
Great instructions….got lost when asked to open the mail applet (wassat) and to expect an outlook.pst file coz I didn’t…I found a backup.pst so I’m guessing it can’t be done from XP to windows 7
Never mind….I’ll keep searching
March 14th, 2011 at 8:15 am
The mail applet is in the control panel in Windows 7 (and every previous version of Windows). In Windows 7, you’ll want to change into ICON view, instead of group view (dropdown list in the upper right) and go from there.
March 21st, 2011 at 7:20 am
Thanks,
Very usefull
April 12th, 2011 at 12:26 am
Fabulous! I will be giving this a try VERY soon.
Thanks!
April 12th, 2011 at 12:29 am
Now, if I can only figure out how to actually run Outlook from a portable drive – completely self-contained, but authentically installed
…any ideas?
April 13th, 2011 at 10:37 am
Ok, I found something out – if hypothetically, your computer crashed (ahem)……. you have to do some different things:
Note – this only works if the hard drive still works…
1. Pull out the hard drive and mount it externally on a different computer (USB external enclosure, or open up the computer and connect it).
2. Navigate to your user directory on the old hard drive (under Users). There should be a file, ntuser.dat
3. **COPY** ntuser.dat to some other folder on your computer. This is in case you can restore your old computer or something – you don’t want to corrupt this file!
4. Run regedit (administrative permissions) and select the HKEY_USERS key.
5. Choose ‘load hive’ and navigate to the **COPY** of the ntuser.dat file.
6. Load the hive registry file (you’ll have to give it a name – maybe “boo”) and locate the key that Jeff mentions above (Profiles)
7. Export that key as a .reg file
8. Now,UNLOAD the hive file you just loaded (boo) otherwise it’ll muck up your current registry (I think, but could be wrong – can’t hurt to remove it, though!)
9. Now, here’s the tricky part. When you exported the registry key, it kept the full path from when it was exported. If you open the .reg file (right-click file, choose edit and notepad will open), you’ll notice that all the keys start with:
[HKEY_USERS\BOO\SOFTWARE…. etc.
This needs to be changed to:
[HKEY_CURRENT_USER\SOFTWARE…
If you don’t change this, it will fail to properly merge with the current user registry!!!
10. Enter – the ‘replace’ command in notepad. just replace all instances of the incorrect registry header with the corrected one:
[HKEY_USERS\BOO\ –> [HKEY_CURRENT_USER\
11. Now you can successfully merge your exported outlook registry profile(s)!
12. Under control panel, check the profiles, check to ensure your .pst files are in their proper locations, and run Outlook (don’t forget you’ll need all the passwords!)
April 22nd, 2011 at 8:25 am
Thanks, it worked for me. it transfered my emaill accounts settings from outlook 2007 to Outlook 2010 pefectly.
At firtst Outlook 2010 did not start because the old *.pst file was in D: drive and the new one was placed in E: drive. So I changed the drive name from “My Computer\Manage” and it started fine, with all the email accounts entacted just as they were under Outlook 2007.
May 7th, 2011 at 5:40 pm
Dude, fantastic. I didn’t have the stored passwords anymore and that program was a lifesaver. Thanks a lot for writing this.
June 7th, 2011 at 4:32 am
[...] http://www.jephens.com/2008/10/14/importing-and-exporting-mail-and-user-accounts-in-outlook-2007/ Thank you Jeff Knapp - you are a lifesaver. [...]
June 21st, 2011 at 12:57 am
Thanks so much for this!
June 27th, 2011 at 7:40 am
Thank you! I bought a new coumpter for my kids and had to move 3 accounts. This is the first set of directions I’ve gotten from the web that was 100% correct!
August 6th, 2011 at 4:24 pm
Thanks for this “timely” information. It has saved me a ton of time and work.
Just adding the passwords now and it looks like it’s good to go!
August 10th, 2011 at 11:01 am
Jeff,
Many thanks for publishing this. Helped me a lot.
My challenge was to transfer a complex mail structure from Outlook 2003 on an XP machine, to a new Win 7 laptop running Outlook 2010 – retaining a large number of mail account settings. Your procedure worked well:
Paraphrasing and augmenting:
- Back up and set restore points on both machines.
- Export registry keys from XP, and copy the .pst files
- Delete existing mail profile on new machine (if exists)using Control Panel/Mail.
- Move mail files to new machine, standard folder
- Move registry key file to new machine & import it
- In Control Panel, check profile/account settings exist
- NB, change the Data Files location
- Fire up Outlook 2010, and voila! Working. Except….
- As noted by Dimitris Asimakopoulos, for some reason the passwords have to be retyped (I used Asterisk Key to discover them on the old machine).
Again – thanks.
Chris
Although I founds bits of the answer in various places, your post was the only one that broug
August 18th, 2011 at 9:39 am
Thanks
That has helped me move 3 mail accounts from an XP machine to a new Windows7 PC.
Only thing missing are some rules that I had set up for filing some messages automatically
August 18th, 2011 at 9:51 am
Rules had in fact been moved but were marked (for other machine) weren’t running.
However I did find that you can export the rules from the old machine as a .rwz file for importing into the new setup
September 22nd, 2011 at 5:50 am
Outlook PST file contains all mailbox data of a user and exporting PST files can migrate Outlook users from one version to another.
October 3rd, 2011 at 10:24 am
Hi, great article, having a few problems though.
I’m trying to do 2010 to 2010 – the files are ost than pst. Going to try a conversion now to see if that does the job.
Outlook is saying cannot configure my .ost file – at first this was because I have a different username on laptop vs. PC so I renamed my PC account to match. This meant the data file path now existed (tried to find out where I could edit this in the imported reg file but to no avail).
October 3rd, 2011 at 10:45 am
An OST is NOT a PST file. An OST file is created by Outlook (most any version, not 2010 exclusively) when it is connected to an Exchange server. You shouldn’t have to do anything to move that user account. It’s often easier when working with Exchange t just reconnect it to the exchange box (there can be only one) and put in the server name and username and be done. The OST file will be recreated when the user reconnects to the Exchange store.
The only time this isn’t the case is when the Exchange store has been corrupted or otherwise unable to be reconnected to. Ten you’ll need to run a recovery on the OST file. There are commercial tools to convert an OST file to a PST. There’s talk you can also rename the OST file to a PST and run ScanPST on it and that’ll make it into a PST file, but I haven’t tried that.
October 3rd, 2011 at 1:03 pm
Well, you learn something new every day
I eventually got it working, there was no conversion to take over or anything like that. What I did notice was that you only appear to get to specify the file location once, otherwise when double clicking the data file you cannot edit the location (PST you can, OST not so fortunate). I couldn’t find any PST on laptop so after figuring out how I could change the path for that OST it worked.
November 1st, 2011 at 6:06 pm
Hi Jeff,
Thanks so much for this walk through it seems to work incredibly, and I thought it would until I started to import my accounts, in the registry all I see is a bunch of giberish, I can’t seem to find the correct “keys” if that is what you are referring to.
I see a bunch of the following under the outlook folfer in profile:
09ff77c182814e4d9fd8cf774eadf346
0b458d50bab5db49acad7faec57ffd2e
5da214670771974d90559e24583ed0dd
Etc. How do I know which ones go to which accounts, because when I open outlook it asks me to put in the account info for each like
SN2PRD0102.mailbox.outlook.com
username:
password:
Thanks for your help. I probably missed something simple =P
December 14th, 2011 at 5:08 pm
Thanks for sharing your process.
Problem, your suggested Password recovery app has not worked under Win7/Outlook 2007.
I could found one, which is working perfectly:
http://www.nucleustechnologies.com/Unmask-Password-Show-Reveal-Stars.html
December 20th, 2011 at 4:59 pm
Hey Man great post… exactly as advertised!
December 22nd, 2011 at 3:30 am
IT WAS A GOOD HELP AND I RECOVERED MY OUTLOOK PASSWORD FROM
Asterisk Key.
THANKS
December 28th, 2011 at 7:26 am
Re asterisk key / unmask-password … seems it’s a bit more complex….Using Win 7, I could get asterisk key to work with Outlook 2010; and with IE 9, but not with Chrome. unmask-password worked with Outlook, but not with any auto-complete password entry on Chrome or IE.