I need to enumerate a users pst files attached to their outlook profile. Ultimately, I will need to relocate them from one network location to another in a logon script.
So far, I'm pulling my hair out digging through "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook" and the random UID named keys beneath which may or may not have information about the name and location of the .pst file. However, I'm able to ascertain that the value 001f3001 = PST name and value 01020fff = location. Too make things interesting, the value data is all in HEX.
What progmatic method is their to enumerate pst files configured in Outlook, detach and reattach them? - as this doesn't look like a job for reg add
(note: I understand Microsoft doesn't support network access of .pst files and am well aware of performance issues induced on file servers hosting them - but once again, no budget for a proper mail archiving product)