我刚刚安装了一个参考windows 7 x64机器,对它进行了系统编辑,进入了WinPE模式,并使用ImageX捕获了boot.wim映像。
然后,在将新的boot.wim部署到其他计算机之前,我将boot.wim移动到c:\wim下的本地PC上,并尝试将驱动程序注入其中。但是,我得到了一个错误2:无法访问图像。
我正在运行的命令是(以管理员身份运行):
Dism /Get-WimInfo /WimFile:c:\wim\boot.wim
DISM /Mount-Wim /wimfile:c:\wim\boot.wim /index:1 /MountDir:c:\mount
Dism /Image:c:\mount /Add-Driver /Driver:c:\drivers\latitude /Recurse我已经使用相同的步骤成功地将使用DISM的驱动程序注入到WinPE引导映像中。那怎么了?!PS:在权限方面,我对boot.wim文件和c:\wim文件夹拥有完全控制权限。我真的很迷惑不解。欢迎任何意见。
-更新--
我只是查看了DSIM在命令提示符中建议的日志文件。它说图像会话已经关闭。怎么会这样?我怎样才能克服这个问题?
2013-05-21 12:27:24, Info DISM DISM.EXE: Attempting to add the commands from provider: WimManager
2013-05-21 12:27:24, Info DISM DISM.EXE: Succesfully registered commands for the provider: WimManager.
2013-05-21 12:27:24, Info DISM DISM.EXE: Attempting to add the commands from provider: FolderManager
2013-05-21 12:27:24, Info DISM DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
2013-05-21 12:27:24, Info DISM DISM.EXE: Attempting to add the commands from provider: Compatibility Manager
2013-05-21 12:27:24, Info DISM DISM.EXE: Succesfully registered commands for the provider: Compatibility Manager.
2013-05-21 12:27:24, Error DISM DISM.EXE: Failed to access the image folder or image's windows folder.
2013-05-21 12:27:24, Info DISM DISM.EXE: Image session has been closed. Reboot required=no.-更新--
要列出boot.wim信息,我运行Dsim命令,结果似乎很好:
C:\Windows\system32>Dism /Get-WimInfo /WimFile:c:\wim\boot.wim
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385
Details for image : c:\wim\boot.wim
Index : 1
Name : Win7 Ent64
Description : <undefined>
Size : 14,986,334 bytes
The operation completed successfully.发布于 2013-05-21 11:23:44
这可能是相当“蹩脚”的回答,但您是否有机会启用UAC,分别运行提升的命令提示符吗?Windows在尝试使用UAC访问系统驱动器时会做一些疯狂的事情:)
发布于 2014-06-06 20:26:27
尝试使用读/写标志挂载wim映像。
https://serverfault.com/questions/509520
复制相似问题