New-FloppyDrive Command | Vmware PowerCLI Reference

New-FloppyDrive

This cmdlet creates a new virtual floppy drive for each of the provided virtual machines. If a floppy image path is provided, sets the floppy drive to point to the image. If both the FloppyImagePath and HostDevice parameters are specified, an error is generated.

Syntax

New-FloppyDrive
-VM < VirtualMachine >
[-FloppyImagePath < String > ]
[-HostDevice < String > ]
[-NewFloppyImagePath < String > ]
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[-StartConnected ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VM VirtualMachine named
  • pipeline
  • wildcards
Specifies the virtual machine to which you want to attach the new virtual floppy drive. Passing multiple values to this parameter is obsolete.
optional FloppyImagePath String named
Specifies the datastore path to the floppy image file backing the virtual floppy drive. Do not use this parameter together with the HostDevice parameter.
optional HostDevice String named
Specifies the path to the floppy drive on the host which will back this virtual floppy drive. Do not use this parameter together with the FloppyImagePath parameter.
optional NewFloppyImagePath String named
Specifies a new datastore path to a floppy image file backing the virtual floppy drive. Do not use this parameter together with the HostDevice parameter.
optional ProgressAction ActionPreference named
optional Server VIServer[] named
  • wildcards
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.
optional StartConnected SwitchParameter named
Indicates that the virtual floppy drive starts connected when its associated virtual machine powers on.

Output

VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.FloppyDrive

Examples

Example 1

New-FloppyDrive -VM VM -HostDevice '/dev/fd0' -StartConnected

Creates a floppy drive backed by the client device /dev/fd0 and sets it to start connected when the virtual machine is powered on.

Related Commands

FloppyDrive

This cmdlet retrieves the virtual floppy drives available on a vCenter Server system.

This cmdlet creates a new virtual floppy drive.

This cmdlet removes the virtual floppy drives from their locations.

This cmdlet modifies the configuration of the specified virtual floppy drive.