Link to home
Create AccountLog in
Avatar of noodleNT

asked on

Unlink PST file in Outlook through a script

We are rolling out a new email archive solution. One of the steps for the rollout will be to import all the PST data back into their mailbox. I already have a script that finds all the PST files on a machine and copies the files to a server. However, I will also need to disable the PST from loading in Outlook on the next restart. Does anyone know what regkey to look for? We are running Office 2003.
Avatar of Paka

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\Current Version\Windows Messaging Subsystem\Profiles\profilename\
NOTE: You must step through the folders present in this registry folder, and look for an "001e6700" entry, which identifies the path of the .pst file. If you see that more than one entry exists for this profile, delete the duplicate.
Avatar of noodleNT


I am not finding that value. Would it be different for a PST that was created for AutoArchive or if a new data file was created from the file menu?
After thowing this on my lab and running some registry snaps, here's the keys I found that control the PST hookup:
HKU\S-1-5-21-3330156506-1260316222-1809743899-500\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\194808637207944596e07e09da9612ec

HKU\S-1-5-21-3330156506-1260316222-1809743899-500\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\37e44390e5044f489ecece4646b916b0

After deleting these, the PST is unhooked from my profile.  Obviously, it's not going to be easy unhooking the PSTs from the other profiles.
hmm..... Let me put in a call to MS and see what they say. I will post back with what I hear.
Avatar of noodleNT

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account