Daily Archives: September 18th, 2008

The most interesting technical event of the day was backing up 50 GB of customer data and subsequently restoring it. Toss in another customer with a corrupt Outlook .pst file and a need for some minor defragmentation, mix with a little bit of broken $5,000 printer/scanner/copier that just arrived at the client’s office today and didn’t have a “scanner failure” a mere two hours before I walked in, and you have all the makings of a typical, average, boring, uneventful day.

One helpful piece of advice I can derive from today’s mediocre excursion relates to dealing with a corrupt Outlook .pst file. There’s a very well-hidden program called “scanpst.exe” stuffed in an obscure folder (okay, so it’s under \Program Files\Common Files\System\MAPI\1033 or something like that, since you absolutely HAD to know…) that will check and repair a damaged .pst file, and sometimes save your bacon when Outlook complains about a busted .pst file and won’t start. However, in this case the scanpst tool detected no issues, yet Outlook XP continued to report “2,847 unknown errors sending” for one item in the outbox that, strangely enough, could not be moved, sent, or deleted. When something like this happens, it’s pretty good evidence that there’s something screwy with the .pst file and you’re better off moving to another one. But how to accomplish this feat? It’s simpler than it may seem at first. (I’m on a machine that doesn’t have Outlook, so I’m doing all of this entirely from memory; adapt the steps as needed for your particular version of Outlook.)

Step 1: Close Outlook. Completely. That means it has to be 100% NOT open; sometimes Outlook actually takes a little while to close after it disappears. If in doubt, press Control+Alt+Delete to pull up Task Manager, hit the Processes tab, click on every “OUTLOOK.EXE” listed and hit [End Process] for each.

Step 2: Open the “Mail” control panel. Click on “Data files.” You will see a list of Outlook data files that are currently loaded into the mail subsystem in Windows. You need to create a new data file, and be sure to give it a name other than “Personal Folders” at the top, so you won’t get confused in the next steps. The other options you pick really don’t matter; you can accept the defaults for everything and it’ll be fine. Don’t set a password for the .pst file unless you want to make your life painful, though!

Step 3: After you see your new data file appear in the list, hit OK or Close to return to the Mail control panel. HIt the first button (it should say something about E-mail accounts), and if you get another screen asking what it is you want to do with E-mail accounts rather than just getting the list, hit the button for managing existing accounts and click Next. At the bottom, under the list of mail accounts, there is a drop-down box for the “default mail delivery location.” CHANGE THIS to match the name of the new file that you created earlier. (If you have two “Personal Folders” entries, you didn’t name it earlier, so choose the LAST file in the list and it should be the correct one.) Then click OK or Close.

Step 4: Click on [Data files] again, and the new data file should have an indication that it is now the “default mail delivery location.” This will then allow you to remove the old data file from the list, which is safe to do, so go ahead and toss it now to prevent possible confusion later. Click OK or Close after you’ve removed the old file from the list.

Step 5: Close the Mail control panel. Open Outlook again. You may receive warnings about the things you’ve just changed; this is normal and you can simply click through them. You should now have a new, empty set of folders, with no contacts or mail whatsoever. The last step is to bring all of your old mail, contacts, tasks, etc. into the shiny new empty folders file. Go to File, then Import and Export. Choose to import from another program or file, and click Next. In the list, choose to import an Outlook personal folders file (.pst), and click Next again. If you are asked about how to import duplicates, choose to “replace duplicates with items imported” (though technically it shouldn’t matter which you pick). When you finally receive a blank in which to specify the file to import, click Browse.

If you don’t immediately see a file or set of files called something like “Outlook,” “Archive,” “outlook.pst,” “archive.pst,” or similar, you’ll need to manually specify where the file is located, but in my experience you are usually placed in the correct folder without having to fish for it. Choose the original file (highly likely to be “outlook” or “outlook.pst” as that is the default) and click OK. Once you click Next, you’ll get a list of folders and some more import options; the defaults are OK, so click Next (or Import or OK). Voila! You’ve successfully moved your mail from the damaged .pst file to a new one!

If you need help locating the Outlook folder where these .pst files are stored, it is located in the following path on a typical installation: “X:\Documents and Settings\your_user_name\Local Settings\Application Data\Microsoft\Outlook” where X: is replaced with your system drive letter (98% of the time it’s “C:”) and your_user_name is replaced with your Windows login name. Local Settings is a hidden folder, so when you browse to your user name folder, you may have to type (with the quotes included) “Local Settings” into the File blank to proceed further. (I told you it would be difficult to locate!)