我正在尝试通过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
我还尝试按照此处的建议获取更详细的错误。结果:
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}
Build 10074或早期版本的Mount-DiskImage有错误。Build 10122已修复它。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句