Home > Exchange Server > How to Add Additional Text to the Exchange 2007 and Exchange 2010 OWA Logon Page

How to Add Additional Text to the Exchange 2007 and Exchange 2010 OWA Logon Page

Recently, someone on a distribution list asked for a method for users to ‘agree’ to a disclaimer before being able to logon to OWA. One of the suggestions was to just append extra info to the logon page, the way that Microsoft Corporate does. Click the images below for a screenshot of Microsoft’s OWA Exchange 2007 and 2010 logon pages.

As you can see below the fields for user credentials, Microsoft has added some helpful text and links. Thanks to Ross Smith IV, I’ve gone through the way Microsoft does it, cleaned up a little, and now I’m gonna show you how easy it is.

The method Microsoft employs is to just use an ASP include to include the contents of a text file. That text file can contain any HTML code you’d like to apped to the logon screen. For the sake of example, I’m going to use the same text that Microsoft uses. Let’s get started.

  1. On your Client Access Server, create a text file called disclaimer.inc in the \Program Files\Microsoft\Exchange Server\ClientAccess\Owa\Auth folder of your Exchange installation, and insert any additional code/text you want to include on your logon screen.
  2. Backup \Program Files\Microsoft\Exchange Server\ClientAccess\Owa\Auth\logon.aspx for safekeeping
  3. Open \Program Files\Microsoft\Exchange Server\ClientAccess\Owa\Auth\logon.aspx in notepad
  4. Find <table>
    right under that, insert a line with the following:
    <!– #include file=”disclaimer.inc” –>
  5. Save and close the file
  6. Visit the OWA logon page, and marvel at your handywork.

There is no need to restart services, reset IIS, or anything. In fact, as soon as you make changes, you can just refresh the logon screen to see the results.

The contents of the cleaned up disclaimer.inc that yields the above results looks like this:

<div style='font-size: 8pt;'>To protect against unauthorized access, your OWA session will automatically time out after a period of inactivity. <b>If your session ends, refresh your browser and log on again.</b>
<hr />
<b>For best OWA performance, click the link that corresponds to your Exchange server:</b>
<br /><br />
<a href="/">Europe </a>
<strong><a href="/">Redmond </a></strong>
<a href="/">Sao Paulo </a>
<a href="/">Singapore </a>
<a href="/">Exchange Dogfood </a>
<a href="/">Windeploy </a>
<a href="/">WinSE </a>
<hr />
<b>Having Trouble Logging On?</b> Please contact the <a href="/">Microsoft IT Global Helpdesk</a>
<hr />
Want to find more information on OWA? Need full access to Microsoft's corporate network or alternative ways to access e-mail from Outlook or a Windows Mobile device?<br />
<a href="/">The Remote Connectivity Options extranet site gets you started.</a></div>

A couple of notes:

The Microsoft version, if you view the source of their OWA page, isn’t quite as clean as this example. I spent some time cleaning things up and removing any unecessary code so that it’s not only more compliant, but easier for the non-HTML coder to understand.

This method is completely unsupported by Microsoft. Don’t go crying to them when it doesn’t work, or blows out your OWA logon page. You made a backup of logon.aspx for a reason.

This change may get overwritten by any hotfix, rollup, and/or service pack that overwrites the logon.aspx page. So you may need to reapply the change to the logon.aspx file after updating.

  1. Turbomcp
    December 28th, 2011 at 15:59 | #1

    Hi
    i tried to follow your instructions step by step
    i even triple checked everything
    but it doesnt seem to work
    after modifying the file owa doesnt load..:(
    removing that one in logon.aspx brings owa back
    any idea what i am doing wrong?
    thanks in advance

    • Pat Richard
      December 28th, 2011 at 16:31 | #2

      Can you tell me what SP and UR you are running?

  2. CKO
    January 6th, 2012 at 14:20 | #3

    Hi
    in my installation is no entry for .
    I have a Exchange 2007 Sp1 Update Rollup 10 in German.

    On my installation nothing does works.

    Have you idea

    Nice day

  3. James
    October 8th, 2014 at 19:13 | #4

    When I search for I get ‘text not found.’ Did you mean ?

    • James
      October 8th, 2014 at 19:17 | #5

      Sorry the form clearly ate parts of my question. When I search for “table” exactly as you have the text above I get nothing. Should there be a forward slash right before the “t” in table?

      • Andrew Conley
        March 3rd, 2015 at 16:44 | #6

        Whenever I put in under it didn’t work and just gave me a blank page? Help??

        • Pat Richard
          March 3rd, 2015 at 16:46 | #7

          It’s quite possible something has changed since then. Unfortunately, I don’t have a 2007 server to test with.

  4. Rahul
    March 19th, 2016 at 05:50 | #8

    Hi,

    I tried this on my exchange 2010 server but the owa page became blank ,as backup was taken so I restored the previous one .Any idea so that it can be successful.

  1. May 16th, 2014 at 10:08 | #1