删除驱动器M的IFS映射

王朝厨房·作者佚名  2007-01-05
宽屏版  字体: |||超大  

概要本分步指南介绍如何从驱动器 M 删除 Exchange 2000 可安装文件系统 (IFS) 映射。

IFS 提供了通过 Win32 文件系统 API 来访问 Exchange 2000 信息存储区这一访问方式。 Exchange 2000 IFS 支持 \\.\backofficestorage\ 命名空间。 为兼容和方便起见,Exchange 2000 也支持正常的驱动器命名空间,默认情况下是驱动器 M:\。 IFS 是作为通过标准文件系统接口访问 Exchange 2000 信息存储区的一种方法被引入 Exchange 2000 的。

不过,在某些情况下,使用 IFS 时可能会遇到一些问题。 正是因为这些问题,所以 Microsoft 建议您删除到驱动器 M 的 IFS 映射,除非您有明确的原因不需要使用 IFS。 即使删除了驱动器 M 或其他驱动器盘符映射,\\.\backofficestorage\ 命名空间仍保持可用。

保留 IFS 映射的理由包括:

将“Microsoft FrontPage 扩展”用于“Web 存储系统窗体”。

需要使用驱动器 M 映射进行开发。

使用 Microsoft Internet Explorer 将驱动器 M 作为一个文件系统来搜索。 如果上面所列任意一条理由与您的 Exchange 2000 环境相符,那么 Microsoft 建议您在存在这些情况的服务器上保留此映射。

如要删除驱动器 M 映射,请使用本文中提供的脚本。

aspx?scid=kb;zh-cn;305145&Product=exch2k#toc" name=bottom>返回页首

创建驱动器 M 删除脚本若要创建驱动器 M 删除脚本,请按照下列步骤操作:

启动一个文本编辑器(如 Microsoft 记事本),然后将下面的脚本复制并粘贴到编辑器中: @setlocal

@if "%1"=="" goto usage

@if "%1"=="/?" goto usage

@if "%1"=="-?" goto usage

@rem Parameter is either a drive letter, or "none"

@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 "delims=" %%a in ('net start') do if "%%a" == " Microsoft Exchange System Attendant" set StartSA=1

For /f "delims=" %%a in ('net start') do if "%%a" == " Microsoft Exchange Information Store" set StartIS=1

For /f "delims=" %%a in ('net start') do if "%%a" == " Microsoft Exchange MTA Stacks" set StartMTA=1

For /f "delims=" %%a in ('net start') do if "%%a" == " World Wide Web Publishing Service" set StartWWW=1

@echo on

@echo Stopping Exchange services...

net stop msexchangesa /y

@echo Stopping Web services...

net stop w3svc /y

@if "%temp%" == "" set temp="C:\"

@set regfile=%temp%\addm.reg

@echo REGEDIT4 > "%regfile%"

@if "%1"=="none" 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] >> "%regfile%"

@echo "DriveLetter"="%newdrive%" >> "%regfile%"

@goto doregedit

:deldrive

@echo removing existing drive letter mapping...

For /f "delims=\=>; tokens=1,2*" %%a in ('subst') do (

if /i "%%c" == " BackOfficeStorage" (

subst %%a /d

)

)

@echo Removing drive mapping from the registry...

@echo [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\EXIFS\Parameters] >> "%regfile%"

@echo "DriveLetter"="" >> "%regfile%"

:doregedit

@type %regfile%

regedit -s "%regfile%"

@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 "Microsoft Exchange System Attendant" /y

@if %StartIS%==1 net start "Microsoft Exchange Information Store" /y

@if %StartMTA%==1 net start "Microsoft Exchange MTA Stacks" /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 ^<drive-letter^>

@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 "none" (without quotes) to remove the mapping.

@goto end

:end

@if not "%regfile%" == "" del "%regfile%"

用 Ifsdrive.cmd 这一文件名保存此文本文件。aspx?scid=kb;zh-cn;305145&Product=exch2k#toc" name=bottom>返回页首

运行驱动器 M 删除脚本创建驱动器 M 删除脚本后,您需要从 Exchange 2000 服务器上使用命令来运行此脚本:

打开一个命令窗口,然后将目录改到保存此脚本的文件夹。

在命令提示符下,键入下面的命令以删除驱动器 M 映射:

ifsdrive none

备注: 为删除该映射,请使用完整的“none”一词。

在脚本运行时,它下一步要执行的操作将显示出来。 脚本完成时,最后一行将显示“Done”(完成)。

备注: 此脚本先停止然后又启动 Exchange 2000 消息传输代理 (MTA)、Exchange 2000 Post Office Protocol 第 3 版 (POP3)、Exchange 2000 Internet Message Access Protocol、Version 4rev1 (IMAP4)、“Exchange 2000 信息存储区”,以及“万维网发布服务”。

如果误删了驱动器 M 映射,而现在因为前面所列原因之一又需要用它,可以在提示符下键入下面的命令(其中驱动器盘符 是 IFS 驱动器映射的盘符):

ifsdrive 驱动器盘符

驱动器盘符 默认情况下是驱动器 M,但如果 IFS 驱动器映射曾被改为另一个驱动器盘符,那么请改用新的驱动器盘符。 删除 IFS 驱动器映射后,在 Exchange 2000 信息存储区服务启动时,下面这一错误消息将记入应用程序事件日志:

来源: ExWin32

EventID:1

类型:错误

描述:

Exchange IFS 未能映射驱动器: ?:。请释放驱动器 ?: 以便使用 Exchange IFS。

您可以放心地忽略此错误信息;以后的 Exchange 2000 版本中将删除此消息。

aspx?scid=kb;zh-cn;305145&Product=exch2k#toc" name=bottom>返回页首

参考有关其他与保留驱动器 M 映射相关的一些问题的信息,请单击下面的文章编号以查看 Microsoft 知识库中的文章:

aspx?scid=kb;EN-US;271465">271465 XADM: Clients Cannot Access Attachments After You Back Up Drive M(备份驱动器 M 后客户机不能访问附件)

aspx?scid=kb;EN-US;281673">281673 PRB: Moving Items Within Drive M of Exchange Can Remove Item Properties(在 Exchange 的驱动器 M 中移动项目会删除项目属性)

aspx?scid=kb;EN-US;298924">298924 XADM: Do Not Back Up or Scan Exchange 2000 Drive M(不要备份或扫描 Exchange 2000 驱动器 M)

aspx?scid=kb;EN-US;299046">299046 XADM: Calendar Items Disappear from User's Folders(日历项目从用户的文件夹中消失)

aspx?scid=kb;EN-US;303245">303245 XCLN: Item Count Incorrect for Messages with Modified Permission(修改权限后,消息的项目计数错误)

有关与驱动器 M 的防病毒扫描相关的一些问题(与保留驱动器 M 映射有关联)的其他信息,请单击下面的文章编号以查看 Microsoft 知识库中的文章:

aspx?scid=kb;EN-US;245822">245822 XGEN: Recommendations for Troubleshooting an Exchange Server Computer with Antivirus Installed(针对安装了防病毒软件的 Exchange Server 计算机的故障排除建议)

aspx?scid=kb;EN-US;298551">298551 XADM: Large Number of Transaction Logs Created(创建了大量事务日志)

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有