我正在尝试通过 powershell 挂载 ISO 文件。我正在尝试在 VMWare Fusion 中运行的 Windows10 虚拟机上执行此操作。在同一虚拟机上的资源管理器中双击时,相同的图像可以正常安装。
我正在使用 Mount-DiskImage cmdlet 之类的
Mount-DiskImage -ImagePath "[Path]" -Verbose
我得到的错误
Mount-DiskImage : The parameter is incorrect.
At line:1 char:1
+ Mount-DiskImage -ImagePath "C:\vs2013.4_ult_enu.iso" -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (MSFT_DiskImage:ROOT/Microsoft/.../MSFT_DiskImage) [Mount-DiskImage], C
imException
+ FullyQualifiedErrorId : HRESULT 0x80070057,Mount-DiskImage
我也尝试按照建议获得更详细的错误 here .结果:
writeErrorStream : True
PSMessageDetails :
OriginInfo :
Exception : Microsoft.Management.Infrastructure.CimException: The parameter is incorrect.
TargetObject : MSFT_DiskImage
CategoryInfo : InvalidArgument: (MSFT_DiskImage:ROOT/Microsoft/.../MSFT_DiskImage) [Mount-DiskImage],
CimException
FullyQualifiedErrorId : HRESULT 0x80070057,Mount-DiskImage
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace :
PipelineIterationInfo : {0, 1}
请您参考如下方法:
构建 10074 或早期构建的 Mount-DiskImage 有问题。
Build 10122 已经修复了它。