DISM add-package报错:[HRESULT = 0x80070005 – E_ACCESSDENIED]

最近在玩WinPE。给WinPE加入FeaturePack的时候报错了:

执行了

dism /image:C:\Mount /add-package /packagepath:"WinPE-NetFx4.cab"
2012-03-02 09:30:24, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Mount/Windows/System32/config/SOFTWARE
2012-03-02 09:30:24, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Mount/Windows/System32/config/SOFTWARE, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2012-03-02 09:30:24, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Mount/Windows/System32/config/SYSTEM
2012-03-02 09:30:24, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Mount/Windows/System32/config/SYSTEM, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2012-03-02 09:30:24, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Mount/Windows/System32/config/SECURITY
2012-03-02 09:30:24, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Mount/Windows/System32/config/SECURITY, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2012-03-02 09:30:24, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Mount/Windows/System32/config/SAM
2012-03-02 09:30:24, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Mount/Windows/System32/config/SAM, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2012-03-02 09:30:24, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Mount/Windows/System32/config/COMPONENTS
2012-03-02 09:30:24, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Mount/Windows/System32/config/COMPONENTS, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2012-03-02 09:30:24, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Mount/Windows/System32/config/DEFAULT
2012-03-02 09:30:24, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Mount/Windows/System32/config/DEFAULT, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2012-03-02 09:30:24, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Mount/Users/default/ntuser.dat
2012-03-02 09:30:24, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Mount/Users/default/ntuser.dat, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
2012-03-02 09:30:24, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Mount/Windows/system32/smi/store/Machine/schema.dat

E_ACCESSDENIED从错误号来分析是权限不够。请从一下几点分析尝试解决。

1.确定cmd使用管理员权限运行。

2.关闭防病毒软件,移植的有McAfee会阻止DISM的操作。尝试临时关闭防病毒保护,或将DISM加入白名单。

3.确认FeaturePack(*.cab)包的文件名是否存在,拼写是否正确。我的问题就出在这个地方。把WinPE-WMI.cab写成了WinPE-WIM.cab,同样报错E_E_ACCESSDENIED。

发表评论

电子邮件地址不会被公开。 必填项已用*标注