Thursday 19 October 2017

Microsoft Outlook: Export list of currently opened PST files


At my current workplace we are upgrading various users from XP to Windows 7. Frequently the users have anywhere from 10 to 30 or so .pst files opened within their installation of Microsoft Outlook 2007. These users are particularly helpless without these files.


I know how to view the list of currently opened PST files, and would like to know if there is an easy way to capture that information other than taking screenshots of the Options -> Data Files window.


Does migwiz.exe transfer this information? Is that the only way?


Would there happen to be a tool that will let you capture and restore that information?


I don't want to export or move the actual .pst's themselves (yes, some of them are on network locations, very terrible, I know), just reopen ones in a new installation of Outlook that used to be opened in a previous installation.



Answer



Here a vbscript that lists the PST's in the users profile


set objOutlook = createObject("Outlook.Application")
set objMAPI = objOutlook.GetNamespace("MAPI")
for each PSTFolder In objMAPI.Folders
pstPath = GetPath(PSTFolder.StoreID)
if pstPath <> "" then
wscript.echo PSTFolder.name & " : " & pstPath
end if
next

function GetPath(input)
for i = 1 To Len(input) Step 2
strSubString = Mid(input,i,2)
if Not strSubString = "00" Then
strPath = strPath & ChrW("&H" & strSubString)
end If
next

select Case True
case InStr(strPath,":\") > 0
GetPath = Mid(strPath,InStr(strPath,":\")-1)
case InStr(strPath,"\\") > 0
GetPath = Mid(strPath,InStr(strPath,"\\"))
end Select
end Function

No comments:

Post a Comment

Where does Skype save my contact&#39;s avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...