新的WindowsImage挂起0x8007007E,无法加载unattend.dll

我试图将捕获.VHDX转换为.WIM文件。 有问题的文件是一个syspreped Windows 7通用图像。
– 我正在使用Windows 8.1,并且安装了Windows ADK。
– 在PowerShell中,我发出命令。
New-WindowsImafe -capturepath e:\ -name Windows7Image -ImagePath d:\wim\windows7.wim -description "Windows 7 Image"
– 进程开始运行,但以下列错误结束。

 new-windowsimage : Unable to load DLL 'unattend.dll': The specified module could not be found. (Exception 

从HRESULT:0x8007007E)在行:1 char:1 + new-windowsimage -capturepath e:\ -name windws7Image -ImagePath D:\ wim \ windows7。 … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo:NotSpecified:(:) [New-WindowsImage],DllNotFoundException + FullyQualifiedErrorId:System.DllNotFoundException,Microsoft.Dism.Commands.NewWindowsImageCommand

当我去图像path,我可以确认该过程已经开始。 不知道为什么它试图加载unattend.dll。 我假设这个操作不需要。

当然,第一次尝试赏金30分钟后,我意识到我们俩都做错了。 这是从64位窗口运行Powershell(x86)时得到的消息。 它从非x86 Powershell工作正常。 为了好的措施,你也需要以pipe理员身份运行。