Add ISO DVD Drive to a Hyper-V VM using PowerShell

 

 

 

 

 

 

 

 

 

 

 

 

 

ADD ISO DVD DRIVE TO A HYPER-V VM USING POWERSHELL

Hyper-V offers the capability to add an ISO image to a virtual CD/DVD drive and you can use Hyper-V Manager to do that, or you can also use PowerShell. Here is how you can add an ISO to a Hyper-V virtual machine (VM) using PowerShell. There are two ways of doing it if you already have a virtual DVD drive attached to the VM or if you need to add a virtual DVD drive.

This works with Hyper-V on Windows Server and on Windows 10.

Configuring Hyper-V Remote Management

After researching for a while on the internet, I found a very useful video which pointed me in the right direction along with some comments from its viewers. This and a bit of reading on Technet also helped me solve the problem and I’m documenting it here for my future reference, hoping that it will be helpful to the rest of you reading this.

For this article, I’m assuming the Hyper-V server is installed and ready to be configured and that the Hyper-V management tools are installed on the client machine.

 

Download the HVRemote.wsf script

The first step is to download the HVRemote.wsf script. This script will greatly speed up the whole process of configuring the Hyper-V remote management.

Download it from here. Unfortunately the script cannot be found anymore at the previous location. You’ll have to google for it or you can download a copy directly from here.

Rename the script to .wsf (please note that the file is made available as is and I will not be held responsible for any misuse given to it, i.e., if you use it, it’s your responsibility). Save the script to a thumb drive as we will need it on both the server and the client machine.

 

Search

Recent Posts