I am trying to install an ISO file through powershell. I am trying to do this on a Windows10 virtual machine running in VMWare Fusion. The same image mounts perfectly when double-clicking in the explorer on the same vm. I use the Mount-DiskImage cmdlet, for example
Mount-DiskImage -ImagePath "[Path]" -Verbose
Error what i get
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
I also tried to get a more detailed error, as suggested here . Result:
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}
source
share