Exchange Server 2010 default domain set for outlook web access

We wanted to set the default domain for users logging into outlook web access on Exchange server 2010. By doing this, users would not have to enter the domain\username and would be free to enter just the user name. This is much easier for the typical user of email servers, who lets face it have trouble enough remembering their own name!

To do this we performed the following steps.

Go to Program Files\Microsoft\Exchange Server\V14\ClientAccess\Owa\14.0.639.21\scripts\premium

Browse to the 14.0.682.1 folder instead of you have the latest rollup.

Open the flogon.js file in notepad

ctrl + f and find the text clkLgn(){addPerfMarker

after the “clkLgn(){” and before the “addPerfMarker” paste the following. Remember to change DOMAINNAME with your own domain name with no slashes.

NOTE: BE SURE THAT YOU PASTE TO NOTEPAD TO VERIFY ” CHARACTERS ARE CORRECT AND ARE NOT 6699’s BUT ARE CORRECT BLOCKQUOTES.

var myDomain=”DOMAINNAME” + “\\”;if(gbid(“username”).value.indexOf(myDomain)==-1){gbid(“username”).value=myDomain+gbid(“username”).value;}

your end result should resemble something like this

clkLgn{var myDomain=”mysampledomainname” + “\\”;if(gbid(“username”).value.indexOf(myDomain)==-1){gbid(“username”).value=myDomain+gbid(“username”).value;}
addPerfMarker

That was it.

Now when a user types their name and pass, the form will automatically log them in using the default domain.

4 thoughts on “Exchange Server 2010 default domain set for outlook web access

  1. Thanks for this. Does the domain name need to be in full? like domainname.com with the .com? etc or first part of domain?

    • good pickup, post updated to include the () in clkLgn(){
      If it didnt work also check the other modifications to the post, if you are running the latest rollup check you’re modifying the flogon.js in the latest version 14.0.x folder.
      AND ALSO very important be sure you are correctly pasting ” values into notepad, these can sometimes translate to 66 and 99 looking characters rather than the standard ” blockquote.

Leave a Reply