错误0x8007007e尝试在Windows 7中使用Powershell安装WinPE 5 wim

使用ADK for Windows 8.1以及随附的DISM cmdlet。 我已经安装了WMF 4.0。 我的机器是Windows 7 x64 SP1,我正在尝试使用wim来装载

PS C:\Users\BigHomie> Mount-WindowsImage -ImagePath 'C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\ en-us\winpe.wim' -Path C:\WinPE_x86 -index 1 

并收到以下错误:

 Mount-WindowsImage : DismInitialize failed. Error code = 0x8007007e At line:1 char:1 + Mount-WindowsImage -ImagePath 'C:\Program Files (x86)\Windows Kits\8.1\Assessmen ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ + CategoryInfo : NotSpecified: (:) [Mount-WindowsImage], COMExcep tion + FullyQualifiedErrorId : Microsoft.Dism.Commands.MountWindowsImageCommand 

使用dism.exe工作正常。

更新

忘了我有这个问题,我去使用Powershell ISE挂载一个wim,

 "C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Deployment Tools\x86\DISM\api-ms-win-downlevel-advapi32-l4-1-0.dll" 

没有被安装。 检查后,确实存在于我调用regsvr32的文件夹中的dll,并收到另一个错误消息

在这里输入图像说明

将尝试按照build议重新安装。

例如:$ env:Path =($ env:Path +“; C:\ Program Files(x86)\ Windows Kits \ 8.1 \ Assessment and Deployment Kit \ Deployment Tools \ amd64 \ DISM“)