none
Outlook 2010 - Change/remove email account display name in title bar

    Question

  • Hi All!

    Outlook 2010 always shows the email-address of the current user in its title bar. For some reasons, I need to search for a solution which would allow me either to skip this email-address in full in this place or to replace it with another text, e. g. first name followed by the lastname or whatever, but NOT the email address.

    I found out that there was a similar posting concerning this topic about 1 year ago. It was already answered, saying that I need Redemption-Framework together with the ProfMan-library.

    I already explored the Redemption homepage for some examples hoping they would help me to solve this problem, however I do not know at all which classes and methods I should use, in order to get access to the account display name in the title bar. I even do not know on which side (client- or exchange-server-side) I need to run this program.

    Thanks for any suggestions/ideas/examples in advance!

    Thursday, February 14, 2013 8:59 AM

Answers

  • I believe you can just edit the registry to rename the account.

    Run regedit an play a bit with

    HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
    Messaging Subsystem\Profiles

    Regards,

    Victor

    • Marked as answer by BlueSky_1974 Thursday, February 14, 2013 6:37 PM
    Thursday, February 14, 2013 11:38 AM
  • As far as I know, Outlook uses the display name (PR_DISPLAY_NAME) of the current store  to display in the caption bar.

    The store name can be accessed through the RDOStore.Name property, the stores are exposed through the RDOSession.Stores collection.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.4 is now available!

    • Marked as answer by BlueSky_1974 Monday, February 18, 2013 3:11 PM
    Thursday, February 14, 2013 1:48 PM

All replies

  • I believe you can just edit the registry to rename the account.

    Run regedit an play a bit with

    HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
    Messaging Subsystem\Profiles

    Regards,

    Victor

    • Marked as answer by BlueSky_1974 Thursday, February 14, 2013 6:37 PM
    Thursday, February 14, 2013 11:38 AM
  • Hi Victor!

    First of all, thanks for your quick answer. I already tried to play around with the registry the days before but with no success. Many parameters there are just ids having some hex-values and I absolutely do not know which of these parameters I should touch.

    I will do some research on this again now. I will let you know as soon as there is some progress.

    Thank you!

    Regards,
    Sascha

    • Marked as answer by BlueSky_1974 Thursday, February 14, 2013 6:35 PM
    • Unmarked as answer by BlueSky_1974 Thursday, February 14, 2013 6:36 PM
    Thursday, February 14, 2013 12:33 PM
  • As far as I know, Outlook uses the display name (PR_DISPLAY_NAME) of the current store  to display in the caption bar.

    The store name can be accessed through the RDOStore.Name property, the stores are exposed through the RDOSession.Stores collection.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.4 is now available!

    • Marked as answer by BlueSky_1974 Monday, February 18, 2013 3:11 PM
    Thursday, February 14, 2013 1:48 PM
  • Hi Victor!

    Thank you soooo much!!! After some more investigations I found the right registry entry which holds the email-address that is used by Outlook to be displayed in its title bar. Now, I can change it to the appropriate text. As I noticed there seem to be no side effects on the email-communications itself so far. Great!!!

    Thank you!!!

    Best regards,

    Sascha

    Thursday, February 14, 2013 6:44 PM
  • Hi Dimitry!

    Ok, I see. Very interesting. I will try your approach as soon as possible. I was already struggling with profiles, services and session-objects of the redemption- and profman-framework. No chance! I got completely lost and finally did not know which property to set. I found out that there were so many properties that are read-only. So, I hope that the property that you mention can be written also.

    By the way, do you know at which point in time outlook reads out the name of the current store? Because I plan to integrate the functionality for changing outlook's title bar inside a VSTO-AddIn. Otherwise, I need a separate vb.net program to be executed before outlook is started on the local machine.

    Best regards,

    Sascha

    Thursday, February 14, 2013 6:57 PM
  • Outlook reads PR_DISPLAY_NAME from IMsgStore every teem you change the selected folder.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.4 is now available!

    Thursday, February 14, 2013 8:01 PM
  • Hi Victor!

    Thank you soooo much!!! After some more investigations I found the right registry entry which holds the email-address that is used by Outlook to be displayed in its title bar. Now, I can change it to the appropriate text. As I noticed there seem to be no side effects on the email-communications itself so far. Great!!!

    Thank you!!!

    Best regards,

    Sascha

    Glad to help.

    Regards,

    Victor

    Friday, February 15, 2013 6:43 AM
  • Hi Dimitry!

    I was very successful. Thanks a lot!

    I implemented a small program that is doing all the stuff that I need using the Redemption-Lib and your approach. Of course your solution is the more elegant one, instead of manipulating the registry.

    So, rewriting registry keys would be somehow a compromise if everything fails.

    Best regards,

    Sascha

    • Marked as answer by BlueSky_1974 Monday, February 18, 2013 3:11 PM
    • Unmarked as answer by BlueSky_1974 Monday, February 18, 2013 3:11 PM
    Monday, February 18, 2013 3:11 PM
  • Which entry was the right one?
    Tuesday, July 07, 2015 6:58 PM
  • Notwithstanding that the original question is over 2 years old, the IMHO the right answer is to solve the problem programmatically without directly editing the registry.  This is especially true since direct editing of the registry would be unreliable in the event of an update to Outlook 2013 ( MSI or C2R).  See What's new for Outlook 2013 developers
    Tuesday, July 07, 2015 9:10 PM
  • Notwithstanding that the original question is over 2 years old, the IMHO the right answer is to solve the problem programmatically without directly editing the registry.  This is especially true since direct editing of the registry would be unreliable in the event of an update to Outlook 2013 ( MSI or C2R).  See What's new for Outlook 2013 developers

    Hi RLWA32,

    That's correct, but as Dmitry said, you have to use a third-party tool named Redemption to solve the problem programmatically and I'm not sure if you can do it using only the native MS tools. And a funny thing is that any software solution wull change the registry anyway. 

    Good luck,

    Victor


    Exchange and Outlook utilities at
    http://www.ivasoft.com

    Friday, July 17, 2015 1:47 PM
  • Hi Victor,

    Sometimes these things don't require a complicated solution.  I had to laugh when I remembered that Outlook will, by default, use an email account address when it creates a default store.  All a user has to do to get rid of the email address from showing in the navigation pane and in the title bar is to use the Data File options (while outlook is not running) to rename the store.  No programming required.

    Friday, July 17, 2015 3:47 PM
  • Hi RLWA32,

    I did not catch your point.

    Earlier you wrote that the right solution is a program tool, and now you tell me that no programming required?

    Could you please describe in details how one can rid of the email address while creating an Exchange account in Outlook?

    Thanks,

    Victor


    Exchange and Outlook utilities at
    http://www.ivasoft.com


    Friday, July 17, 2015 4:48 PM
  • Victor,

    First, the OP never mentioned Exchange and neither did I.

    I just happen to agree with the MS guidance in this case.  A registry edit is a more fragile solution than a programmatic one.  OTOH, if (in the absence of Exchange) one can solve the problem by renaming the store then that seems to be the cleanest approach. 

    And it is certainly possible to access the display name of a store by directly using MAPI and native MS tools.  After all, isn't that what Redemption is doing behind the scenes?


    • Edited by RLWA32 Friday, July 17, 2015 5:19 PM
    Friday, July 17, 2015 5:09 PM
  • First, the OP never mentioned Exchange and neither did I.

    That's true. But I thought we are talking about an universal solution applicable for any type of account.

    And it is certainly possible to access the display name of a store by directly using MAPI and native MS tools.  After all, isn't that what Redemption is doing behind the scenes?

    You are right again. My point is that behind the scene MAPI changes the registry too.

    Regards,

    Victor


    Exchange and Outlook utilities at
    http://www.ivasoft.com


    Friday, July 17, 2015 5:29 PM
  • You are right again. My point is that behind the scene MAPI changes the registry too.
    Yes, no argument there.  But the advantage to using the appropriate MAPI interfaces is that the solution is shielded from circumstances where MS changes the implementation details as it did with Outlook 2013 profiles and C2R.  Either way will work if appropriate care is taken.
    Friday, July 17, 2015 5:46 PM