I have MS Exchange account as my primary mail account in my default mail profile. I need to get its mail address programmatically in some VBScript.
I've got Outlook installed, so I can do it like this:
MsgBox CreateObject("Outlook.Application").GetNamespace("MAPI").CurrentUser.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x39FE001E")
But only when Outlook is running, also I've got security prompts in Outlook, so I can't use this approach.
I've found that a bunch of information about profiles and accounts is stored in registry under HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\Profiles\
I've found Email
value for POP3 and IMAP accounts in subkeys of 9375CFF0413111d3B88A00104B2A6676
in default profile, but none of that for Exchange account.
Where can find a value for Exchange account mail address of current user in registry?