Save Your Exchange Password in Microsoft Outlook 2003/2007

RPC over HTTP/S is a method for connecting your Outlook 2003/2007 client to the corporate Exchange Server 2003/2007 from the Internet or WAN, without the need to establish a VPN session to the corporate LAN and/or needing to open many ports on your corporate firewall. You can read more about it on my “How can I configure RPC over HTTP/S on Exchange 2003 (single server scenario)?” and “How can I configure Outlook 2003 to use RPC over HTTP/S?” articles (and elsewhere on the site).

In Windows XP or Windows Vista, it is my experience that in most cases Outlook 2003/2007 only asks you for your password the first time you open it, but afterwards that password is stored locally and you are no longer prompted for it. However, in some cases you are constantly prompted to enter your Exchange account password each time you open Outlook 2003/2007.

ol save pwd 0

Figure A

It seems that if the machine is a member of the same domain as the Exchange server, the user should not have to authenticate again, and the entire authentication process should be completely transparent. However, if the machine is not a member of the domain, then it appears that some people have got it to save the password and some have not.

If you are running on Windows XP, Windows 2003 or Windows Vista, it is possible to save your password in Outlook 2003/2007.

In order to save your password for Outlook 2003/2007 please follow one of these steps:

Method #1 (works in most cases)

Sometimes, when creating the Outlook profile, the Proxy Authentication Settings in the Connection option of the Exchange profile will be set to Basic Authentication rather than NTL Authentication.

Basic authentication requires that  you continue to type your user account credentials anytime Outlook is re-opened. There is no way for the client to submit your user name and password automatically. So, if you want to log on automatically, you must configure your Outlook profile to use NLTM authentication to your proxy server for Exchange. The authentication mechanism that you configure in Outlook is used only for the HTTP session to your proxy server for Exchange. The actual authentication between Outlook and your Exchange server always uses NTLM.

Note: Before you switch to using NTLM authentication, you must verify with your administrator that NTLM authentication is permitted or even possible in your environment. Many firewalls and proxy servers will prevent successful NLTM authentication, whereas Basic authentication will work successfully. See the More Information section for additional details.

To change the authentication mechanism on the Outlook client to NTLM, follow these steps:

  1. Start Outlook 2003/2007.  On the Tools menu, click E-mail Accounts or Account Settings, depending on your version of Outlook.
  2. Double-click on your Exchange account.
  3. ol save pwd 1 small

    Figure B

  4. On the Exchange Server Settings page, click More Settings.
  5. ol save pwd 2 small

    Figure C

  6. Click the Connection tab.
  7. Click Exchange Proxy Settings.
  8. ol save pwd 3

    Figure D

  9. Under Proxy authentication settings, click NTLM Authentication in the Use this authentication when connecting to my proxy server for Exchange list.

    ol save pwd 4

    Figure E

  10. Click OK two times. Click OK again in response to the prompt that you must restart Outlook for the changes to take effect.
  11. ol save pwd 5

    Figure F

  12. Click Next, and then click Finish.
  13. Restart Outlook.

Method #2 (it won’t hurt to try if method #1 doesn’t work)

If your account is already configured to use NTLM authentication and you are still prompted for your user name and password when you are logged on as the Windows account that has access to your Exchange mailbox, you must set the LmCompatibilityLevel on your client computer’s registry to a value of 2 or 3. To do this, follow these steps.

Warning!

This document contains instructions for editing the registry. If you make any error while editing the registry, you can potentially cause Windows to fail or be unable to boot, requiring you to reinstall Windows. Edit the registry at your own risk. Always back up the registry before making any changes. If you do not feel comfortable editing the registry, do not attempt these instructions. Instead, seek the help of a trained computer specialist.

  1. Open the Registry Editor by clicking Start > Run. Type regedit in the box, and then press Enter.
  2. Locate and then click the following registry subkey:
  3. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\
  4. In the right pane, double-click lmcompatibilitylevel.
  5. In the Value data box, type a value of 2 and then click OK.
  6. Close Registry Editor and restart your computer.

Method #3 (sometimes complements the above 2 methods)

I’ve seen this work in occasion, so I guess it won’t hurt to add it here.

Note: This process has been recommended by Microsoft, however for reasons unknown to me it does not always work. I have posted it here it here as a recommendation.

  1. Find your Exchange Server name in your Outlook Profile. The server name is the name of the server that actually hosts your mailbox.
  2. Open the Windows Key Manager by clicking Start > Run and typing control keymgr.dll. Click Enter.
  3. In the Stored Username and Passwords window, click Add.
  4. ol save pwd 6

    Figure G

  5. Enter your Server Name from Step 1, then enter your domain\mailbox name and enter your mailbox password.
  6. ol save pwd 7

    Figure H

  7. Click OK and click Close.
  8. ol save pwd 8

    Figure I

  9. Launch Outlook. When prompted for your password, click Remember Password.

    ol save pwd 9

    Figure J

  10. Close Outlook after login is complete.
  11. Repeat Steps 3-5.
  12. Launch Outlook – you should not be prompted for your password.

Method #4 (if nothing else works)

Download a free tool called OutlookAutologin. The tool launches Outlook and automatically enters the password needed to connect to the Exchange server. The first time you launch OutlookAutologin.exe, it asks you to enter the password. This password is then saved and will be automatically used each time you launch Outlook via OutlookAutologin.exe.

Be warned, the author of this tool does not offer any sort of support, nor do I, so use at your own risk.

Download here: OutlookAutologin

Links

Recent Exchange Forum threads

Got a question? Post it on our Exchange Server Forums!