Skip to content
This repository was archived by the owner on May 8, 2023. It is now read-only.
This repository was archived by the owner on May 8, 2023. It is now read-only.

Argument Exception when mounting DVD images on Windows 10 #17

@acasquete

Description

@acasquete

Running on Windows 10 we get an exception when trying to mount the secondary DVD image. It seems that the Add-VMDvdDrive cmdlet needs a third parameter.

==> hyperv-iso: Creating virtual machine...
==> hyperv-iso: Enabling Integration Service...
==> hyperv-iso: Mounting dvd drive...
==> hyperv-iso: Mounting floppy drive...
==> hyperv-iso: Mounting secondary DVD images...
==> hyperv-iso: PowerShell error: Add-VMDvdDrive : Exception of type 'System.ArgumentException' was thrown.
==> hyperv-iso: Parameter name: folderPath
==> hyperv-iso: At C:\Users\Alex\AppData\Local\Temp\ps512879933.ps1:2 char:1
==> hyperv-iso: + Add-VMDvdDrive -VMName $vmName -ControllerNumber $controllerNumber
==> hyperv-iso: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> hyperv-iso:     + CategoryInfo          : InvalidArgument: (:) [Add-VMDvdDrive], VirtualizationException
==> hyperv-iso:     + FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.AddVMDvdDrive
==> hyperv-iso: Unmounting floppy drive (cleanup)...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions