< Back

Set-FloppyDrive

Sun Jan 19, 2020 7:08 pm

NAME Set-FloppyDrive



SYNOPSIS

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





SYNTAX

Set-FloppyDrive [-Floppy] <FloppyDrive[]> [-Connected <Boolean>] [-FloppyImagePath <String>] [-HostDevice

<String>] [-NoMedia] [-StartConnected <Boolean>] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

This cmdlet modifies the configuration of the specified virtual floppy drive. If a floppy image path is provided,

the cmdlet sets the floppy drive to point to the image. Also, the cmdlet updates the StartConnected and Connected

properties. If the value of the NoMedia parameter is $true, the cmdlet removes the floppy drive's media backing

and disconnects it. The FloppyImagePath, HostDevice, and NoMedia parameters cannot be used together. The

Connected parameter can be specified only if the corresponding virtual machine is powered on.





PARAMETERS

-Connected <Boolean>

If the value is $true, the virtual floppy drive is connected after its creation. If the value is $false, the

floppy drive is disconnected. This parameter can be specified only if the corresponding virtual machine is

powered on.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Floppy <FloppyDrive[]>

Specifies the virtual floppy drive you want to configure.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-FloppyImagePath <String>

Specifies the datastore path to the floppy image file that backs the virtual floppy drive. Do not use this

parameter when the HostDevice and NoMedia parameters are specified.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-HostDevice <String>

Specifies the path to the floppy drive on the host that backs this virtual floppy drive. Do not use this

parameter when the FloppyImagePath and NoMedia parameters are specified.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-NoMedia [<SwitchParameter>]

Indicates that the floppy drive is to have no media (similar to removing the floppy from a physical drive). Do

not use this parameter when the FloppyImagePath and HostDevice parameters are specified.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-StartConnected <Boolean>

If the value is $true, the virtual floppy drive starts connected when its associated virtual machine powers

on. If the value is $false, it starts disconnected.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false,

the cmdlet runs without asking for user confirmation.



Required? false

Position? named

Default value $true

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are

modified.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Zero or more modified FloppyDrive objects







NOTES









-------------------------- Example 1 --------------------------



Set-FloppyDrive -Floppy $floppy -StartConnected:$true



Sets a floppy to start connected.



RELATED LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... Drive.html

Get-FloppyDrive

New-FloppyDrive

Remove-FloppyDrive