D(one) IT

IT Tips, Tricks & Such

Category Archives: Tips

Customize Outlook Web App themes in Exchange 2010 sp1

Customizing themes for OWA requires understanding the changes Exchange 2010 sp1 has done with theme management and the addition of new themes.

OWA Theme selection (about 28 themes to choose from):

Customizing all these themes would be painful. Thankfully you can disable users from being able to change OWA themes.

  • Using EMC GUI: Disable the Theme Selection option in the segmentation tab of OWA (Default Web Site) in Client Access under Server Configuration.
  • Using PowerShell:
    set-owavirtualdirectory -identity "<servername>\owa (default web site)" -themeselectionenabled $false 

OWA Theme selection removed:

I’ll be going over modifying an existing theme. Detailed information for creating a new theme can be found: Create a Theme for Outlook Web App

The OWA themes are stored:
\Program Files\Microsoft\Exchange Server\V14\ClientAccess\Owa\<version>\themes\

*Theme location changes as Exchange service packs or rollups are installed. Customizations will need to be copied to the new path after major updates.*

To set the default theme from powershell if not modifying the base theme:

set-owavirtualdirectory -identity "<servername>\owa (default web site)" -defaulttheme NewCustomtheme

Replacing the favicon.ico and the logo used for the signon and signoff screens can be done by replacing the favicon.ico and lgntopl.gif contained in the resources folder:
\Program Files\Microsoft\Exchange Server\V14\ClientAccess\Owa\<version>\themes\resources\

  • favicon.ico (16 x 16)
  • lgntopl.gif (456 x 115)

lgntop1.gif before and after:

Updating the Logo used in OWA is a little harder as it’s contained in a sprite map in the csssprites.png file located:
\Program Files\Microsoft\Exchange Server\V14\ClientAccess\Owa\<version>\themes\<base>

looking at the csssprites.css file located in the same directory as the png shows the logo is 144 x 42:

  • .sprites-logoowa-png{background-image:url(‘csssprites.png’);background-position:-62px 0px;width: 144px;height: 42px;}

When modifying the csssprites.png file remember to keep images the same size and location as the original, otherwise major changes to the csssprites.css will be required.

csssprites.png before and after:

OWA main before and after (Including favicon.ico changes):


Exchange 2010 sp1 Mailbox export to PST

In Exchange 2010, Outlook was required to be installed on the server in order to export a mailbox to PST. This is no longer the case and the MailboxExportRequest commandlet runs without any additional requirements after the install of Exchange 2010 sp1, except the user must have the “Mailbox Import Export” role.


# Export request command
New-MailboxExportRequest -Mailbox "name" -FilePath "\\uncpath\name.pst"

# Check on request status
Get-MailboxExportRequest | Get-MailboxExportRequestStatistics

# Remove request after completion
Get-MailboxExportRequest |Remove-MailboxExportRequest

Exchange 2010 sp1 OWA password reset

Exchange 2010 sp1 contains the reset user password feature in Outlook Web App, but it’s disabled by default. (http://technet.microsoft.com/en-us/library/bb684904.aspx)

To enable this feature, make the following changes on all CAS servers in your environment:

  • In registry editor, navigate to: HLKM\SYSTEM\CurrentControlSet\Services\MSExchange OWA
  • Create or modify the following DWORD entry: ChangeExpiredPasswordEnabled and set the value to 1.

Changes to OWA

Outlook 2010 thumbnailPhoto in Active Directory

While testing Outlook 2010 on Exchange 2010, I found the GAL now supports photos (out of the box… almost)

Requirements (GAL Photos in Exchange 2010 and Outlook 2010):

  • Outlook 2010 (Note: Exchange 2010 OWA doesn’t retrieve AD photos).
  • AD forest upgraded to support 2008 domain controllers (adprep, not Function Level).
  • Modify the thumbnailPhoto attribute in AD schema to replicate to the Global Catalog.

Uploading photos into AD can be done using the Exchange cmdlet: Import-RecipientDataProperty, but is limited to a max 10k photo size.

Import-RecipientDataProperty -Identity Michael -Picture -FileData ([Byte[]]$(Get-Content -Path "S:\Staff_Photos\Michael.jpg" -Encoding Byte -ReadCount 0))

I came across this free tool: ADPhotoEdit which can push the size limit to 100k and has a pretty awesome gui. There is a paid version which includes bulk features.

Update: Outlook 2003-2007 can access the thumbnailPhoto if  the Outlook Social Connector is installed and the thumbnailPhoto property in OAB is changed from an indicator to a value. (Updating OABDeploying OSC)

Show passwords behind asterisks in browsers

I found this little script that when pasted into the address bar, it will reveal the password hidden behind the ***** for the current page.

javascript: var p=r(); function r(){var g=0;var x=false;var x=z(document.forms);g=g+1;var w=window.frames;for(var k=0;k<w.length;k++) {var x = ((x) || (z(w[k].document.forms)));g=g+1;}if (!x) alert('Password not found in ' + g + ' forms');}function z(f){var b=false;for(var i=0;i<f.length;i++) {var e=f[i].elements;for(var j=0;j<e.length;j++) {if (h(e[j])) {b=true}}}return b;}function h(ej){var s='';if (ej.type=='password'){s=ej.value;if (s!=''){prompt('Password found ', s)}else{alert('Password is blank')}return true;}}

Tested in the latest versions of Chrome, IE and FF. You might get a security prompt to allow the script to run. I take no credit for the writing of this script.