Mount-DiskImage error on a Windows 10 host running in vmware

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}
+4
source share
2 answers

Build 10074 or an early build of Mount-DiskImage has an error. Build 10122 fixed this.

+1
source

, SYSTEM . SYSTEM , , . ... , .

0

Source: https://habr.com/ru/post/1589378/


All Articles