Microsoft KB Archive/944516

= How to register Filter Pack IFilters with Exchange Server 2007 =

Article ID: 944516

Article Last Modified on 12/18/2007

-

APPLIES TO


 * Microsoft Exchange Server 2007 Standard Edition
 * Microsoft Exchange Server 2007 Enterprise Edition

-



Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756 How to back up and restore the registry in Windows XP and Windows Vista



INTRODUCTION
This article describes how to register Microsoft Filter Pack IFilters with Microsoft Exchange Server 2007. By registering the IFilters, you enable additional file types to be indexed by a server that is running Exchange Server 2007. To register the IFilters, you must modify the registry.

This article describes how to modify the registry manually. It also describes how to use the Exchange_reg.vbs script to modify the registry automatically.



MORE INFORMATION
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

How to register the Filter Pack IFilters by modifying the registry manually
To do this, follow these steps:  Install the Microsoft Filter Pack.

Note The architecture of the Filter Pack should match the architecture of the operating system (x64 or x86). For more information about how to install the Microsoft Filter Pack, visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?FamilyId=60C92A37-719C-4077-B5C6-CAC34F4227CC&displaylang=en

 Locate the following registry subkey:

For this subkey, add the following subkeys and values.  Locate the following registry subkey:

For this subkey, add the following subkeys and values.  Stop and then restart the Exchange Search service. To do this, follow these steps:  Click Start, click Run, type cmd in the Open box, and then click OK. At the command prompt, type net stop msftesql-exchange, and then press ENTER. At the command prompt, type net start msexchangesearch, and then press ENTER.</li> Type exit, and then press ENTER to exit the command prompt.</li></ol> </li></ol>

How to register the Filter Pack IFilters by modifying the registry automatically
You can use the Exchange_reg.vbs script to modify the registry automatically. To do this, follow these steps: <ol> Install the Microsoft Filter Pack.

Note The architecture of the Filter Pack should match the architecture of the operating system (x64 or x86). For more information about how to install the Microsoft Filter Pack, visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?FamilyId=60C92A37-719C-4077-B5C6-CAC34F4227CC&displaylang=en

</li>  Copy the following text, and then paste it into a Notepad file. ' Copyright (c) 2007 Microsoft Corporation. All rights reserved. ' ' THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE RISK ' OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER.

' This is a filter registration script to configure Exchange Server 2007 to index 2007 Office attachments. ' The script generates a .reg file that adds the required registry keys.

Const ForWriting = 2

Set FSO  = CreateObject(&quot;Scripting.FileSystemObject&quot;) Set Shell = CreateObject (&quot;WSCript.shell&quot;) Set Env  = Shell.Environment(&quot;Process&quot;)

wscript.echo &quot;Creating ExchangeFilterRegistration.reg in the current directory&quot; Set file = FSO.OpenTextFile(&quot;ExchangeFilterRegistration.reg&quot;, ForWriting, True)

commonFiles = Env(&quot;CommonProgramFiles&quot;) commonFiles = Replace(commonFiles,&quot;\&quot;,&quot;\&quot;)

officeFilterLocation = commonFiles & &quot;\Microsoft Shared\Filters\offfiltx.dll&quot; onenoteFilterLocation = commonFiles & &quot;\Microsoft Shared\Filters\ONIFilter.dll&quot; visioFilterLocation  = commonFiles & &quot;\Microsoft Shared\Filters\VISFilt.DLL&quot;

docxGuid   =&quot;{5A98B233-3C59-4B31-944C-0E560D85E6C3}&quot; pptxGuid   =&quot;{DDFE337F-4987-4EC8-BDE3-133FA63D5D85}&quot; xlsxGuid   =&quot;{F90DFE0C-CBDF-41FF-8598-EDD8F222A2C8}&quot; zipGuid    =&quot;{20E823C2-62F3-4638-96BD-90F4F6784EBC}&quot; xlsbGuid   =&quot;{312AB530-ECC9-496E-AE0E-C9E6C5392499}&quot; onenoteGuid =&quot;{89BCB740-6119-101A-BCB7-00DD010655AF}&quot; vsdGuid    =&quot;{FAEA5B46-761B-400E-B53E-E805A97A543E}&quot;

exchangeClsidKey  = &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Exchange\MSSearch\CLSID&quot; exchangeFilterKey = &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Exchange\MSSearch\Filters&quot;

file.WriteLine &quot;Windows Registry Editor Version 5.00&quot; file.WriteLine file.WriteLine &quot;[&quot; & exchangeClsidKey & &quot;]&quot; file.WriteLine OutputCLSIDKey exchangeClsidKey, docxGuid, officeFilterLocation OutputCLSIDKey exchangeClsidKey, pptxGuid, officeFilterLocation OutputCLSIDKey exchangeClsidKey, xlsxGuid, officeFilterLocation OutputCLSIDKey exchangeClsidKey, zipGuid, officeFilterLocation OutputCLSIDKey exchangeClsidKey, xlsbGuid, officeFilterLocation OutputCLSIDKey exchangeClsidKey, onenoteGuid, onenoteFilterLocation OutputCLSIDKey exchangeClsidKey, vsdGuid, visioFilterLocation

file.WriteLine &quot;[&quot; & exchangeFilterKey & &quot;]&quot; file.WriteLine OutputFilterKey exchangeFilterKey, &quot;docm&quot;, docxGuid OutputFilterKey exchangeFilterKey, &quot;docx&quot;, docxGuid OutputFilterKey exchangeFilterKey, &quot;pptm&quot;, pptxGuid OutputFilterKey exchangeFilterKey, &quot;pptx&quot;, pptxGuid OutputFilterKey exchangeFilterKey, &quot;xlsm&quot;, xlsxGuid OutputFilterKey exchangeFilterKey, &quot;xlsx&quot;, xlsxGuid OutputFilterKey exchangeFilterKey, &quot;xlsb&quot;, xlsbGuid OutputFilterKey exchangeFilterKey, &quot;zip&quot;, zipGuid OutputFilterKey exchangeFilterKey, &quot;one&quot;, onenoteGuid

OutputFilterKey exchangeFilterKey, &quot;vsd&quot;, vsdGuid OutputFilterKey exchangeFilterKey, &quot;vss&quot;, vsdGuid OutputFilterKey exchangeFilterKey, &quot;vst&quot;, vsdGuid OutputFilterKey exchangeFilterKey, &quot;vdx&quot;, vsdGuid OutputFilterKey exchangeFilterKey, &quot;vsx&quot;, vsdGuid OutputFilterKey exchangeFilterKey, &quot;vtx&quot;, vsdGuid

wscript.echo &quot;Created ExchangeFilterRegistration.reg for this server.&quot; wscript.echo &quot;Run ExchangeFilterRegistration.reg to enable Exchange Search indexing of 2007 Office attachments.&quot; wscript.echo &quot;then run &quot;&quot;net stop msftesql-exchange&quot;&quot; followed by &quot;&quot;net start msexchangesearch &quot;&quot;&quot;

Public Function OutputCLSIDKey(base,guid,location) file.WriteLine &quot;[&quot; & base & &quot;\&quot; & guid & &quot;]&quot; file.WriteLine &quot;@=&quot;&quot;&quot; & location & &quot;&quot;&quot;&quot; file.WriteLine End Function

Public Function OutputFilterKey(base,extension,guid) file.WriteLine &quot;[&quot; & base & &quot;\.&quot; & extension & &quot;]&quot; file.WriteLine &quot;@=&quot;&quot;&quot; & guid & &quot;&quot;&quot;&quot; file.WriteLine End Function </li> Save the file that is named Exchange_reg.vbs, and then double-click the file. This procedure creates an ExchangeFilterRegistration.reg file.</li> Double-click the ExchangeFilterRegistration.reg file, and then follow the prompts to set the correct registry values.</li></ol>

The following file name extensions are supported by the Filter Pack:
 * .docm
 * .docx
 * .one
 * .pptm
 * .pptx
 * .vdx
 * .vsd
 * .vss
 * .vst
 * .vsx
 * .vtx
 * .xlsb
 * .xlsm
 * .xlsx
 * .zip

Additional query words: Exchange 2007 SP1 Office-12 filters

Keywords: kbhowto kbexpertiseinter KB944516

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.