Search This Blog

Tuesday 24 August 2010

Create Custom Exchange 2007 / 2010 OPATH Custom Address Lists and EAP with Recipient Filters

To Create a new Address list which is filtered on users UPN and Creates in a Container called Test Dept (To Create at the root, Replace with \:

New-AddressList -Name "Test Address List" -Container "Test Dept" -RecipientFilter {((RecipientType -eq 'UserMailbox') -and ((UserPrincipalName -like '*@test.co.uk') ))}


To Create EAP based on users UPN:

New-EmailAddressPolicy -Name "AD Net EAP" -EnabledPrimarySMTPAddressTemplate "smtp:%g.%s@test.com" -RecipientFilter "UserPrincipalName -like '*@ad.net'" -Priority "9"

Monday 23 August 2010

Enable Adobe iFilter for Exchange 2010

Microsoft has tested and supports all of the default IFilters installed with Exchange Server 2010. Third-party IFilters can be added, which could extend the capability for inspecting additional file types. However, Microsoft has not tested third-party IFilters with Transport Rules, so it is highly advised that you fully test any third-party IFilters before deploying into your production environment. Additional files can be parsed by installing and registering the file type's IFilter on each Hub Transport server. For example, you can add support for inspecting PDF file attachments by downloading and installing the Adobe PDF IFilter. After that, simply register the IFilter DLL to the Exchange server registry location: 

  1. Identify the CLSID of the installed IFilter (search under HKeyClassesRoot\CLSID\ in the registry, or get it from installation docs)
    For example, the CLSID for PDF files is:
    {E8978DA6-047F-4E3D-9C78-CDBE46041603}
  2. Create a new registry key under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\MSSearch\CLSID with the same name as the CLSID, and a default value which points to the full path of the IFilter DLL file.
    For example, for PDF files, the default path of the PDF IFilter is:
    C:\Program Files\Adobe\Adobe PDF IFilter 9 for 64-bit platforms\bin\PDFFilter.dll
  3. Create a new key under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\MSSearch\Filters with the name of the file extension that the filter will handle. Enter the default value for this key to be the CLSID of the IFilter
    For example, for PDF files, the key you should create:
    Name:
    .pdf
    Value: {E8978DA6-047F-4E3D-9C78-CDBE46041603}
  4. The Network Service needs to have read access to both of these keys. To check the permissions, and allow Read permissions for Network Service, right click on the CLSID and Filter keys, select "Permissions.." Network Service should be added with Read permissions allowed..
Now the Transport Rules engine will be able to inspect these file attachments for the key words and text patterns configured in the Transport Rule condition. The registry cache automatically refreshes every 30 minutes, but if you want the changes to be immediately applied, then restart the Exchange Transport Service on the Hub Transport Server where you made the change. At the Exchange Shell prompt:
Restart-Service msexchangetransport
Restart-Service MSExchangeSearch

Force Re-Build and crawl of index`s on each mailbox server
.\ResetSearchIndex.ps1 –Force –All

Thursday 19 August 2010

Error Creating New Database Exchange 2010


Couldn't mount the database that you specified. Specified database: 
<test3>; Error code: An Active Manager 
operation failed. Error: The database action failed. Error: Operation 
  failed   with message: MapiExceptionNotFound: Unable to mount database. 
 (hr=0x8004010f,  ec=-2147221233) [Database: <test3>, Server:   <Servername>]. 
An Active Manager operation failed. Error: The database action failed. Error: 
  Operation failed with message: MapiExceptionNotFound: Unable to mount 
  database.  (hr=0x8004010f, ec=-2147221233) [Database: <test3>
 
Resolution
========
Simply Wait for AD Replication to Occur and attempt to Mount.

Exchange 2010 Installing Updates using MSIEXEC Command

Attempting to install an Update Rollup, You may see the update hang at “Starting Services”

To Resolve the issue, from a Administrator Command Line, Run the following command.

msiexec /update e:\support\Exchange2010-KB982639-x64-en.msp

Exchange 2010 Public Folders not visible through OWA

During a Transition from Exchange 2003 to 2010, You may not be able to see the public folder hierachy and recive the following error:

the public folder you’re trying to access couldn’t be found. if the problem continues, contact your helpdesk and tell them the following the public folder couldn’t be found because there are no exchange 2010 public folder servers

In the Event log, you may recieve the following message:
Event ID 2161
"Event ID 2161" Validation - "publicfolderhierarchy". error message: you must provide a value for this property:

Fix
===
Find the offending Public folder through ADSIEDIT, find attribute msexchowningpftree
This will be empty or not set, simply find a working PF Folder and copy the attribute, or get the Distinguised name from the "folder hierachy" object and copy this into the missing attribute.

We saw this error on 2 offline public folder stores, which were using doubletake.

"Communicator could not retrieve calendar or Out of Office information from Exchange Web Services"

After Moving a Mailbox to exchange 2010, Microsoft Office Communicator 2007 Client reports the following Intergration Warning.

"Communicator could not retrieve calendar or Out of Office information from Exchange Web Services" 

Fix is to Apply the Following Hotfix

Detail
http://support.microsoft.com/?kbid=2028885