Set-VMFloppyDiskDrive
Set-VMFloppyDiskDrive
Configures a virtual floppy disk drive.
Syntax
Parameter Set: VMFloppyDiskDrive
Set-VMFloppyDiskDrive [-VMFloppyDiskDrive] <VMFloppyDiskDrive[]> [[-Path] <String> ] [-Passthru] [-ResourcePoolName <String> ] [ <CommonParameters>]
Parameter Set: VMName
Set-VMFloppyDiskDrive [-VMName] <String[]> [[-Path] <String> ] [-ComputerName <String[]> ] [-Passthru] [-ResourcePoolName <String> ] [ <CommonParameters>]
Parameter Set: VMObject
Set-VMFloppyDiskDrive [-VM] <VirtualMachine[]> [[-Path] <String> ] [-Passthru] [-ResourcePoolName <String> ] [ <CommonParameters>]
Detailed Description
The Set-VMFloppyDiskDrive cmdlet configures a virtual floppy disk drive.
Parameters
-ComputerName<String[]>
Specifies one or more Hyper-V hosts on which the virtual floppy disk drive is to be configured. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer — use “localhost” or a dot (“.”) to specify the local computer explicitly.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
. |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Passthru
Specifies that a Microsoft.Virtualization.Powershell.FloppyDiskDrive object is to be passed through to the pipeline representing the virtual floppy disk drive to be configured.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Path<String>
Specifies the path to the virtual floppy drive file. If specified as $null, the drive is set to contain no media.
Aliases |
none |
Required? |
false |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
true (ByPropertyName) |
Accept Wildcard Characters? |
true |
-ResourcePoolName<String>
Specifies the name of the virtual floppy disk resource pool to use for this virtual floppy disk.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
true |
-VM<VirtualMachine[]>
Specifies the virtual machine in which the virtual floppy disk drive is to be configured.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
-VMFloppyDiskDrive<VMFloppyDiskDrive[]>
Specifies the virtual floppy disk drive to be configured.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
-VMName<String[]>
Specifies the name of the virtual machine on which the virtual floppy disk drive is to be configured.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
true |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1
Connect C:\Test.vfd to the virtual floppy disk of virtual machine TestVM.
PS C:\> Set-VMFloppyDiskDrive TestVM C:\Test.vfd