I have managed to return all the profiles using this registry path:- HKEY_CURRENT_USER\Software\Microsoft\Office\xx.0\Outlook\Profiles\Outlook\9375CFF0413111d3B88A00104B2A6676\00000002
However I am now wondering how to determine the default profile. In other words is there a reg key that identifies the default profile from the rest of the profiles.
Thank you in advance.
Outlook 97-2010
The REG_SZ
DefaultProfile
under HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles
contains the value (subkeyname) of the default profile.
Since Outlook 2013 (v15)
The same structure exists for newer versions in
HKEY_CURRENT_USER\Software\Microsoft\Office\%version%\Outlook\Profiles