Discussion on:

89
Comments

Join the conversation!

Follow via:
RSS
Email Alert
0 Votes
+ -
You don't have to look far for a hex editor: DEBUG.COM has been a staple of Microsoft operating systems since DOS 2.1 at least!

At the command prompt, from the appropriate sub-directory, type DEBUG followed by the PST filename then enter. You will get a hyphen prompt. Simply type E 0107 followed by enter. DEBUG will now prompt you to enter one hexadecimal character at a time. Type 20 (hexadecimal for ASCII 32, or space) followed by the space bar seven times. Type enter once to get out of editing mode.

To save your changes type W followed by the filename and press enter. DEBUG will report that it wrote so many bytes. Now simply type Q and press Enter to get out of DEBUG.

Voil?: one edited file!

Regards,
St?phane Parent
0 Votes
+ -
It is fine and good to do one character at a time, but debug has a "fill" command. Instead of using
-e 107

try using:
-f 107 113 20

which will replace all the values between 0107 and 0113 with 20. Same thing, just less hassle.
0 Votes
+ -
Hi,

I tried the steps mentioned by you and in the post before yours...it did not work at all. The PST files becomes a 0 byte file and scanpst.exe fails to recognize the file!

I'm using Win xp SP2 and Outlook 2003

Can any1 help pls?
0 Votes
+ -
A safer way to fix PST files is to use a professional utility like Stellar Outlook PST Repair. That way you won't risk making the situation even worse.
0 Votes
+ -
if i will using this method to repair my Outlook PST Repair file.is this safe?
PST Repair
0 Votes
+ -
Doesn't work for me
kirm 8th Nov 2003
I get an insufficient memory error from debug.com. Oh well, if your PST file isn't too big it should work.

Thanks for the reminder about debug.com...I almost forgot about it.

For those looking for an excellent hex editor try frhed of free hex editor. It works great and the price is right. A quick search of Google for frhed should find it.
0 Votes
+ -
If you get an out of memory error then the .pst file is probably pretty large. Try changing your Virtual Memory size so it is slightly larger than your .pst file. Don't forget to set it back later.
I don't usually have much to do with outlook as we deal mostly with domestic PCs (all deleted VXDs and "I didn't download anything - honest"), but recently had an Outlook problem on a domestic PC running XPH. Opening Outlook gave error messages that expand.dat couldn't be accessed and on getting past that, all messages, contact lists etc had evaporated. Tried everything I could think of or find on the net to no avail, eventually saved all three copies of the PST files and expand.dat to folders on the desktop, uninstalled Office SBE, manually removed all Office registry entries then deleted all references to Office, its components and in particularly the expand.dat from the several 'Application Data' folders and System32. (Getting a bit desperate by now!) Reinstalled OfficeXP SBE from scratch and 'bingo!', everything came back. Messages, contacts list, email account settings, all except the email password. An extreme fix, but successful on this occasion.
0 Votes
+ -
Maybe somone can clear this question up; If the client loses an email that was delivered to his Mailbox(server), how does corrupting the client's PST(local pc) recover emails from the Deleted Items in the Mailbox(server)? Or does it only recover emails from the Deleted Items in the PST(local pc)?
0 Votes
+ -
Local PST
AlanTheTech 9th Mar 2004
This fix only recovers emails that were deleted from the PST. "Deleted" means first moved to the Deleted Items folder and then emptied.
0 Votes
+ -
I have used this procedure to recover items that have been deleted using "Shift+Delete". This was a Outlook 2000 .pst file.
I have been delete using "Shift+Delete" on inbox. I'd like recover some folder on inbox.
How to recover?.

Thank very much
0 Votes
+ -
R U sure?
RubberDuck 3rd Feb 2005
'cause i mistakingly used shift+delete on a mail that just arrived(mistaking it for spam) and then tried to recover it with this method(needless to say i did it right away)but with no success. later on i played around with it and i noticed that mails that where removed from the deleted items did come back. can someone clarify if recovering shift+delete items works from the inbox folder or only from the deleted items folder?
Well, the procedure described here applies to .pst files. If the email in question had just arrived, then it would be sitting in your Inbox which is not part of any .pst file.
-
What you can do is to use the delete recovery feature for your folders. For example let's say you were using Outlook 2003, you run regedit and do the following edit:
On: HKEY_LOCAL_MACHINE\Software\Microsoft\Exchange\Client\Options.
on the Edit menu, point to New, and then click DWORD Value.
Type the name DumpsterAlwaysOn. (Note: Do not type any spaces in the name.)
Set the DWORD value to 1.
Restart Outlook.

Then when you go to the Tools menu while on your Inbox, you??ll see a new command to recover deleted files. If you had done this then, you would have recovered your message. Hopes this helps someone.
0 Votes
+ -
I found your article on how to recover deleted outlook email very interestig. However I am using Netscape Mail and I was wondering how can one unerease deleted email even after emptying the trash in Netscape Mail.

Thank you
0 Votes
+ -
Somehow for the past year, I have had a user here using Outlook 2000 (Internet Only mode) on a laptop running Windows 2000 with no apparent problem without a PST file. This was discovered upon copying his profile to a new profile and discovering only a backup PST file upon restarting Outlook with the new profile and all the past years messages gone! Have you ever heard of this and is there a fix?
Thank you!
Did you try looking in 'C:\Documents and Settings\ \Local Settings\Application Data\Identities\{ }\Microsoft\Outlook Express'

I've seen Outlook do this sometimes. Also, sometimes the .PST file is in %windir% instead of 'C:\Documents and Settings\\Local Settings\Application Data\Microsoft\Outlook'
where you would expect it.

Jay
0 Votes
+ -
I tried this method. It is really helpful. A nice idea.
0 Votes
+ -
Didn't work
kirbott@... 14th Oct 2005
Tries this method a few times. I even tried it immediately after emptying the deleted items folder - literally seconds between trying the method and emptying the folder. Every time the file repairs but the deleted items folder is always empty. Hmmmmm. What could be wrong?
0 Votes
+ -
Do we use this recovery method immediately when the user found out that he or she had accidentally deleted some important email?
What if the user wish to recover back the email taht was deleted sometimes ago? Can the email deleted be recovered after so many read and write process carried out by the hard disk?
0 Votes
+ -
"Permanently Deleted" emails remain in the pst file until the user Compacts the pst file (Tools/Services/Personal Folders/ Properties/Compact Now

Pst files should be backed-up regularly, then compacted to reduce size. Outlook has a size limit forpst files, which it is not too hard to hit with all the spam coming in. Also, pst files have a tendency to corrupt, so backing up is necessary with or without compacting
0 Votes
+ -
Tried it
M.R. 14th Jul 2003
I had the same problem with an end user a month ago and followed the steps in the linked article but it din't help. Recovery tools were iffy as well. One thing to note (I think it's mentioned in the link) is that you have to catch it as soon as possible. Just like undeleting files on a hard drive, the sooner you get to them the better. Otherwise any added or moved emails might overwrite the email you're trying to get to.
0 Votes
+ -
Why not simply use the outlook tool to "Recover Deleted Items"? It works until the deleted item is written over at which time it doesn't seem that any recovery tool would work.
0 Votes
+ -
Exchange only
Winterfrost 15th Jul 2003
This won't work if you are using Outlook in Internet Mail Only mode. Recover Deleted Items only appears if you are using Outlook with an Exchange server.
I have users that are corrupting .ost and .pab files. Public Address books (.pab) gets corrupted easily too.
0 Votes
+ -
Teraine,

You may want to try the Scan OST file utility found on Microsoft's website. I'd be happy to send you copy as well. It works just like the ScanPST utility in that it finds bad sectors and attempts to repair them.

It really depends on your need though, if you're in an Exchange environment, you could just resynch while attached to the server to correct any errors...

Hope that helped...
Depending on your company's exchange policy, deleted email might not even last for more than a day, where as a non-compressed PST could sit near static for years (and your avearge user will never compress a PST).
Starting with Outlook 2000 SP1, PST files will automatically start compacting in the background if the PC is totally idle (ie screen saver).

You can use products like ours, http://www.PSTCompactor.com/ though to force it 'now' across the company though.
When you read the Microsoft explanation to this tools, it only works for email accounts with an Exchange server.
I read the article. Very clever way to recover deleted files. What happens if I run the Compress archive option? Can I still recover deleted emails following the advice given?
0 Votes
+ -
Once you compact the file, all "deleted" items in its internal "Fat" are removed/overwritten so that the file can be smaller and more efficient. That is the purpose of the compacting function.
How to descover the lost mail in microsoft outlook 2000 which the outlook 2000 is not using Microsoft Exchange Server but is using own server.
How to descover the lost mail in microsoft outlook 2000 which the outlook 2000 is not using Microsoft Exchange Server but is using own server.
I'm assuming the fix in this article refers to emails that have also been removed from the "Recover Deleted Items" option (where they go after emptying the Deleted Items folder)?

Just want to clarify, since the Recover option is quite handy for emails that need to be restored within 3 or 4 days* after being deleted.

(*more or less, depending on number of items deleted)
Very interesting post.
I am wondering if this is usefull in the corporate environment with an exchange server, or if it really applies mostly to individual (stand alone) installations of Outlook?
0 Votes
+ -
This particular technique certainly wouldn't work on an Exchange server. Completely different animal. This is a technique for stand-alone .PSTs only.

On an Exchange server, you can accomplish the same thing by setting your Deleted Item Retention period to a few days (or more, depending on your organization). This will give you a window of a few days, which is really all the "corrupting" method would buy you in any .PST with average usage.
0 Votes
+ -
hstern@... 15th Jul 2003
How can recovery of the pst file recover items deleted from the Deleted Items in the server mailbox? Wouldn't the pst recovery operation recover ONLY deleted items from the pst file itself which contains its own Deleted Items folder different from the one in the mailbox?
You're right -recovering from the pst won't recover emails from the Exchange server. If deleted items are in a pst file you need to use the trick detailed in this article. If you want to recover from an Exchange server you will need to use the Recover Deleted Items function -assuming that it has been enabled on the Exchange Server-if it isn't enabled you will find that the option is greyed out.
0 Votes
+ -
What a Waste
d50041 15th Jul 2003
In any company the pst file should be on the SERVER and backed up daily.....I have no sympathy.
0 Votes
+ -
I've had a few occasions where a user has deleted an email that only came in that day. So the email was received and deleted all between backup runs. I unfortunately had to tell the user that the backups couldn't help them.
0 Votes
+ -
Your vision seems to be limited to the corporate, networked environment. I service many computers for individuals and small business systems that use Outlook as a stand-alone product, without and Exchange server.
This fix is critical to be able torecover files for my users, and I have used a similar method on several occasions.
0 Votes
+ -
In addition to ABG's comments, some company's (quite more now adays I"m sure), have legal implications of storing email. Also, if server space was not a concern, why bother using PST files in that type of enviroment? Give all the users unlimited Exchange mailboxes.

I'm in a large corporate Exchange environment where users utilize both .pst and server space. So this fix was pretty relevant. Just my .02...

Later...
0 Votes
+ -
not in all cases
JCMiller 7th Nov 2003
What about remote users that want the ability to work on E-Mail off line. In these cases a local PST or OST is a must (in our case we use PSTs), so the statement that companys should have PST (Mailboxes) on the server is not alway valid. about 50% of Our users need acces to there E-mail but do not always have a phone line available to connect to the server.
0 Votes
+ -
I also work in a networked environment where they are saved on the server, but on occassion a user gets a bit careless and deletes an e-mail accidentally. If it just came in it's not backed up yet and I sure wouldn't want to come to you and ask for help. Been there, done that and there are ways to recover the lost mail. You are probably not the most desired tech in your I.T. department when it comes to a user making a mistake. S**T HAPPENS!!
0 Votes
+ -
Have to agree!
keithme 28th Sep 2007
Yep have to agree, what a disaster to have such a guy on your staff. Users make mistakes, Users need help, Unfortunately we are NOT all perfect!
0 Votes
+ -
Excellent
Robert4jc 15th Jul 2003
Great stuff. thanks for the Knowledge deposet
Does this recover deleted sent items?
How do you use a Hex Editor to edit a 902MB PST file, I've tried everything - it never opens - even in "UltraEdit"
0 Votes
+ -
902MB - try perl
nicholasd 18th Jul 2003
try this (make a backup of your pst file first!):

Get ActivePerl for Windows and install it: http://www.activestate.com/Products/Language_Distributions/

Open notepad and paste the text between "cut here" and "end cut", save this as corrupt.pl in a new empty directory of your choice. Copy your pst file into this new directory as well.

Open a DOS window in the same directory and do:

perl corrupt.pl yourfile.pst

You're done, this will write the space char 13 times starting at offset 7 as explained in the original article.


# cut here ---------------------------------------
if(! -f $ARGV[0]){ die "not a file" };
open(FH, "+$ARGV[0]") || die "no filename $!";
binmode(FH);
seek(FH,7,0);
print FH " " x 13;
close(FH);
exit;
# end cut ---------------------------------------

WARNING! if you accidentally type the wrong filename on the command line you are going to overwrite those bytes in that file, there is no turning back. You should make a new directory and put the corrupt.pl file and a _copy_ of your pst file in there and work it that way.
0 Votes
+ -
Compacting
dkharrison@... 16th Jul 2003
This method wil not work once the PST is compacted correct?
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.