473,666 Members | 1,989 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Retrieving Registry info & Outlook data after crash

4 New Member
<Excerpted from this thread.>

i just suffered the same thing, and wanted to throw this out there for future reference. my system drive also failed - the data is good, but between the platter and the mainboard it randomly gets skewed and causes a crc error when reading from the drive. needless to say, windows can't boot from it anymore, and there's no way i could install over it since it would never verify the files copied properly. anyhow!

Saving your mail:

to completely restore your outlook express from a crashed drive, you need entries from the HKCU tree of the registry, which you won't have access to unless you can boot that particular windows installation. that data is stored in X:\Documents and Settings\[username]\ntuser.dat. unfortunately it's a binary file - so in windows XP, regedit will not open it unless you're on a domain (that's a guess), as the Load Hive command is disabled. that's actually a good thing, you wouldn't want to import it right away because it would be keyed to your old (non-existant on this installation) user account. but, the Registry Tool program linked earlier works great. so grab that, find your dat file, and you're ready to start. you need to collect four things:
  1. your message archive. copy the following folder:
    Expand|Select|Wrap|Line Numbers
    1. X:\Documents and Settings\[username]\Local Settings\Application Data\Identities\{[your-user-identity-number]}\Microsoft\Outlook Express
  2. your address book. copy the following file:
    Expand|Select|Wrap|Line Numbers
    1. X:\Documents and Settings\[username]\Application Data\Microsoft\Address Book\[username].wab
  3. your email accounts. stored in the registry, original location:
    Expand|Select|Wrap|Line Numbers
    1. HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts
  4. your blocked senders list and other mail rules. also in the registry, at original location:
    Expand|Select|Wrap|Line Numbers
    1. HKEY_CURRENT_USER\Identities\{Identity Number}\Software\Microsoft\Outlook Express\5.0\
Registry Tool:

you can probably figure out how to use the Registry Tool app, but i'll include a brief rundown for the less technically inclined.

click File > Import a File > Import DAT/Hive binary file. click Next. click Browse. navigate to the user's home folder and select ntuser.dat. click Open, then Next several times. at this point your computer may freeze up for a minute while it parses the file. then click Next, and close the message window that pops up. click Next a few more times, and it will show a file dialog asking where you want to save your work. doesn't really matter, so just click Save. it will then load the file and pop up a message about the demo's limitations, which you can close. now, turn Updating OFF and press Okay. the file should now be loaded, and everything that would normally be under HKEY_CURRENT_US ER in regedit, will be found in HKU\{[your-user-identity-number]} in the top left pane. navigate to the key you want to backup (one is "Outlook Express", and the other is "5.0") and click once on it. now, click File > Export to REG, then change the first Radio box from Single to Branch and click Okay. pick a filename, and save it somewhere easy, like your desktop. repeat for the other key you need.

Restoring the data:

ok, once you've got your stuff together, you need to reintegrate it. Following the same 4 main points as before:
  1. open outlook express. click File > Import > Messages. Choose the version you were using, probably Outlook Express 6. choose Import mail from an OE6 store directory and click OK. click Browse and choose the folder containing you copied earlier. you should now see all your messages and folders.
  2. in outlook express, click File > Import > Address Book. choose the .wab you saved earlier, and all your contacts will be loaded.
  3. open up Notepad, and load account.reg or whatever you named your first export from registry tool. see the first block of registry entries that begins with the "[HKEY_USERS\ ... \ACCOUNTS]" key? select and delete that section, you don't need it. then delete any blocks whose main keys don't end in numbers, such as the "\BIGFOOT]" one. that should leave numbered keys only ( [HKEY...\ACCOUNT S\0000001] and so on) for as many accounts as you had set up. now, select and copy the first part of any remaining key, from HKEY to the last number (for example HKEY_USERS\S-1-5-12-1234567890-123456789-12345678-123). then click Edit > Replace, and in the Find what box, paste it. in the Replace with box, type "HKEY_CURRENT_U SER" and click Replace All. save the file, close outlook if you have it open, and go back to your desktop and double-click the .reg file. confirm that you want to add the info. don't start Outlook yet, as your mail rules aren't loaded yet so all will be in your inbox.
  4. open the other registry file you exported in Notepad. this one also contains all of OE's settings, so you can go through it and trim those out if you'd like. i decided not to, because there's a lot to wade through. select the first part of a key, from HKEY_USERS to the identity number ( for example, HKEY_USERS\S-1-5-12-1234567890-123456789-12345678-123\ IDENTITIES\{123 ABC1A-ABC1-1234-1234-1A2BC34DE5FG} ) and copy it. then click Edit > Replace, and in the Find what box, paste it. now open up Regedit, and navigate to HKEY_CURRENT_US ER\Identities\{[your-identity-number]}. right-click on the identity number and select Copy Key Name. go back to Notepad, paste into the Replace with box, and click Replace All. save the file, close outlook if you have it open, and go back to your desktop and double-click the .reg file. confirm that you want to add the info.
when you start up OE for the first time, it will ask you the password for each account you have, even if you used to have them saved.

!!! your mileage may vary, after i imported the mail rules and settings, i found that the messages and folders that i had already imported were gone - after disconnecting from my mail server, i found that all the messages that were moved due to rules had gone to the Deleted Items folder, because none of the other folders existed (junk, for instance). if you use any custom folders for your mail rules, you may have to go into each rule and fix them. you'll see problem rules with a red X in the checkbox, and the problem will also be highlighted in red. after you import your messages/folders again, you just need to click the folder name and choose it again. good luck!
Aug 1 '07 #1
0 12465

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2613
by: Rohit Santhanam | last post by:
As I am reading the .NET documentation, I get the feeling that Microsoft is trying to get rid of the registry. My understanding is that an application built using .NET does not use the registry at all. So, conceivably as applications are migrated to .NET, the registry could disappear in a future version of Windows. Does anybody out there agree with me? Of course, they might keep the registry for backward compatibility purposes.
3
4982
by: deko | last post by:
When adding Outlook Appointment Items from Access, should I use: Set ol = New Outlook.Application --or-- Set ol = CreateObject("Outlook.Application") Outlook seems to crash either way. The Outlook application (and/or Calendar) may or may not be open when this sub runs.
6
9648
by: Dave Hopper | last post by:
Hi I am using the following SQL to retrieve a value in a list box using a unique ID held in the list box call cntID. The list box is used on an order form to list appointments that have been made for service staff. My problem is the SQL is not retrieving the value of the listbox. I have tested the SQL by entering a fixed value of a valid entry in the listbox and it works fine, but as soon as I replace the fixed value with...
8
4494
by: Steve | last post by:
Can anyone tell me the preferred method for writing and retrieving persistent information using .Net. Specifically, I am referring to information that you used to see in registry keys or .ini files like the name of a database or connection string. I have read several articles indicating that .config files are now used, but I am confused because they are read- only. If I want to write information from within the application (When a...
6
2247
by: Ian Williamson | last post by:
Greetings, My company has an ASP.NET based enterprise product that is undergoing some changes and I need some community input to help solve a problem. In the current implementation, any given installation of the product supports only one database at a time. The server/db information is stored in the registry on the computer hosting the com+ based middle tier. We are now moving to a solution which supports multiple databases. That...
1
1973
by: kerpal | last post by:
Hi all, I need to retrieve some information (POP/SMTP server names, etc.) of a current POP3 login email account in Outlook 2002/2003. How may i go about achieving this? Any suggestion would be greatly appreciated. Thanks a lot in advance.
1
3707
by: Crash | last post by:
I am having a tough time finding documentation on DASL! 1) What the heck does DASL stand for - I can't even find any documentation on that? Anyway, I would like to integrate a DASL query into my C# program, in effect I would like: "select all appointments on my calendar from xx/xx/xx to xx/xx/xx" Can I do a query like this using DASL? If so can anybody help me out with a starting example? Do I integrate it into my C# program using...
21
8348
by: kennygee | last post by:
I have a drive that crashed, now non-bootable. I can slave the drive and see the system files but I need certain registry keys from the non-bootable drive and inport it to the new registry. OS is XP with sp2.
3
2170
by: Bruno Vignola | last post by:
Good Morning all, I need to interoperate with the Calendar of MS Outlook 2003 (inserting, retrieving, listing events, etc. etc.) from an ASP.NET application; I first developed a simple windows application in C# and it worked fine, I added the OL reference and created the COM object with the following code:
0
2266
by: Roman Optio | last post by:
Hi, I am currently working on a tool to transfer addressbook data such as contacts and organizations between Vondle and Outlook. For those of you who are wondering what Vondle is, it is an online project management toolkit used to support large engineering projects. More information on Vondle can be found at http://www.bricsys.com/vondle/ . The purpose of the tool is to fluently transfer addressbook data between vondle & outlook. I've...
0
8356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8871
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8640
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5664
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2771
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.