Previous Topic: dpmhv-setVMProperties (Cmdlet) Command--Set VM PropertiesNext Topic: dpmhv-ShowClusterSharedVolumes (Funclet) Command--Show all Cluster Shared Volumes


dpmhv-SetVMVirtFloppy (Cmdlet) Command--Connect a Virtual Floppy Image to the VM Floppy Drive

The dpmhv-SetVMVirtFloppy command lets you connect a virtual floppy image to the specified VM floppy drive on the Hyper-V host.

This command has the following format:

dpmhv-setVMVirtFloppy 
-host hostname 
-vm vmname|-vmid vmguid 
[-path pathname]
[-retval]
[-silent]
-host hostname

Specifies the name of the Hyper-V server host.

-vm vmname

Specifies the name of the VM.

-vmid vmguid

Specifies the unique ID of the VM.

-path pathname

(Optional) Specifies the path of the virtual floppy image (*.vfd) file that you want to create.

-retval

Returns a value for further processing.

-silent

Specifies not to direct the output to the screen.

Example: Attach a Floppy Image to VM Floppy Drive on Hyper-V Host

This example attaches a floppy image, "floppy.vfd" to the VM floppy drive on the Hyper-V host, "TestVM."

dpmhv-setVMVirtFloppy 
-host hvserver 
-vm TestVM 
-path c:\img\floppy.vfd

Example: Detaches a Floppy Image from VM Floppy Drive on Hyper-V Host

This example detaches a floppy image from the VM floppy drive on the Hyper-V host.

dpmhv-setVMVirtFloppy -host hvserver -vm TestVM