Microsoft KB Archive/305145

= How to remove the IFS mapping for Drive M in Exchange 2000 Server =

Article ID: 305145

Article Last Modified on 2/28/2007

-

APPLIES TO


 * Microsoft Exchange 2000 Server Standard Edition

-



This article was previously published under Q305145



IN THIS TASK
SUMMARY
 * Create the Drive M removal script
 * Run the Drive M removal script

REFERENCES



SUMMARY
This step-by-step article describes how to remove the Exchange 2000 Installable File System (IFS) mapping from drive M.

The IFS provides access to the Exchange 2000 information store through Win32 file system APIs. The Exchange 2000 IFS supports the \\.\backofficestorage\ namespace. For compatibility and convenience, Exchange 2000 also supports a normal drive namespace, by default M:\. The IFS was introduced in Exchange 2000 as a way to access the Exchange 2000 information store by using the standard file system interface.

However, in some situations, you may experience issues when you use the IFS. Because of these issues, Microsoft recommends that you remove the drive M mapping to the IFS, unless you are using the IFS for specific reasons. The \\.\backofficestorage\ namespace remains available even when you remove drive M or other drive letter mappings.

Some reasons to keep the IFS mapping in place are:
 * If you use Microsoft FrontPage Extensions for Web Storage System Forms.
 * For development using the drive M mapping.
 * If you use Microsoft Internet Explorer to search drive M as a file system.

If any of the preceding items describe your Exchange 2000 environment, Microsoft recommends that you keep the mapping in place on servers the where these conditions exist.

To remove the drive M mapping, use the script that is provided in this article. This script will automatically update the Outlook Web Access virtual directories to use the \\.\BackOfficeStorage path.

back to the top

Create the Drive M removal script
To create the drive M removal script:   Start a text editor (such as Microsoft Notepad), and then copy and paste the following script text into the editor: @setlocal @if &quot;%1&quot;==&quot;&quot; goto usage @if &quot;%1&quot;==&quot;/?&quot; goto usage @if &quot;%1&quot;==&quot;-?&quot; goto usage @rem Parameter is either a drive letter, or &quot;none&quot;

@rem check for presence of adsutil.vbs @set adu=%systemdrive%\inetpub\adminscripts\adsutil.vbs @if exist %adu% goto stopsrv @echo This tool requires %adu% from the IIS scripts. @goto fail


 * stopsrv

@rem Record what Exchange services are currently running @echo off @set StartSA=0 @set StartIS=0 @set StartMTA=0 @set StartWWW=0 For /f &quot;delims=&quot; %%a in ('net start') do if &quot;%%a&quot; == &quot;  Microsoft Exchange System Attendant&quot; set StartSA=1 For /f &quot;delims=&quot; %%a in ('net start') do if &quot;%%a&quot; == &quot;  Microsoft Exchange Information Store&quot; set StartIS=1 For /f &quot;delims=&quot; %%a in ('net start') do if &quot;%%a&quot; == &quot;  Microsoft Exchange MTA Stacks&quot; set StartMTA=1 For /f &quot;delims=&quot; %%a in ('net start') do if &quot;%%a&quot; == &quot;  World Wide Web Publishing Service&quot; set StartWWW=1 @echo on @echo Stopping Exchange services... net stop msexchangesa /y

@echo Stopping Web services... net stop w3svc /y

@if &quot;%temp%&quot; == &quot;&quot; set temp=&quot;C:\&quot; @set regfile=%temp%\addm.reg @echo REGEDIT4 > &quot;%regfile%&quot; @if &quot;%1&quot;==&quot;none&quot; goto deldrive @set drive=%1 @set newdrive=%drive:~0,1% @echo Adding %newdrive% drive mapping to the registry... @echo [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\EXIFS\Parameters] >> &quot;%regfile%&quot; @echo &quot;DriveLetter&quot;=&quot;%newdrive%&quot; >> &quot;%regfile%&quot; @goto doregedit
 * deldrive

@echo removing existing drive letter mapping... For /f &quot;delims=\=>; tokens=1,2*&quot; %%a in ('subst') do ( if /i &quot;%%c&quot; == &quot; BackOfficeStorage&quot; ( subst %%a /d ) ) @echo Removing drive mapping from the registry... @echo [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\EXIFS\Parameters] >> &quot;%regfile%&quot; @echo &quot;DriveLetter&quot;=&quot;&quot; >> &quot;%regfile%&quot;
 * doregedit

@type %regfile% regedit -s &quot;%regfile%&quot; @if errorlevel 0 goto mb @goto fail


 * mb

@echo Touching the metabase to force update of Exchange virtual roots... cscript %adu% delete /ds2mb/HighWaterMarks @goto restart


 * restart

@echo Restarting services... @if %StartSA%==1 net start &quot;Microsoft Exchange System Attendant&quot; /y @if %StartIS%==1 net start &quot;Microsoft Exchange Information Store&quot; /y @if %StartMTA%==1 net start &quot;Microsoft Exchange MTA Stacks&quot; /y @if %StartWWW%==1 net start w3svc /y @goto done


 * fail

@echo The operation did not succeed. @goto end


 * done

@echo Done. @goto end


 * usage

@echo Usage: ifsdrive ^ @echo       ifsdrive none @echo Modifies or removes the mapping of Exchange storage to a local drive letter. @echo Specify a single letter to map Exchange storage to that drive. @echo Specify &quot;none&quot; (without quotes) to remove the mapping. @goto end


 * end

@if not &quot;%regfile%&quot; == &quot;&quot; del &quot;%regfile%&quot;  Save the text file with the file name Ifsdrive.cmd.

back to the top

Run the Drive M removal script
After you create the drive M removal script, you need to run the script from a command prompt on the Exchange 2000 server:  Open a command prompt window, and then change to the folder that you saved the script to. At the command prompt, type the following command to remove the drive M mapping:

ifsdrive none

NOTE: To remove the mapping, use the actual word &quot;none.&quot; As the script runs, the action that it is performing next appears. When the script is finished, &quot;Done&quot; appears as the last line.

NOTE: The script stops and starts the Exchange 2000 message transfer agent (MTA), Exchange 2000 Post Office Protocol version 3 (POP3), Exchange 2000 Internet Message Access Protocol, Version 4rev1 (IMAP4), Exchange 2000 information store, and World Wide Web Publishing services.</li> If you incorrectly remove the drive M mapping and you need it for one of the reasons listed earlier in this article, type the following command at a command prompt (where  is the letter of the IFS drive mapping):

ifsdrive

The  is drive M by default, but if the IFS drive mapping was ever changed to a different drive letter, use the new drive letter instead. This script will automatically update the Outlook Web Access &quot;Exchange&quot; and &quot;public&quot; virtual directories to use the specified drive letter.</li></ol>

After you remove the IFS drive mapping, the following error message is logged in the Application event log when the Exchange 2000 Information Store service starts:

Source: ExWin32

EventID: 1

Type: Error

Description:

The Exchange IFS failed to map drive: ?:. Please free drive ?: to use Exchange IFS.

You can safely ignore this error message; it will be removed in later versions of Exchange 2000.

back to the top

Important You should run this script from the console of the Exchange 2000 Server computer. If this script is run by using a Terminal Server session, the drive mapping may reappear after a few days.

<div class="references_section">