Get-SCVirtualFloppyDrive
Get-SCVirtualFloppyDrive
Gets a VMM virtual floppy drive objects from a virtual machine, a virtual machine template, or a hardware profile.
Syntax
Parameter Set: All
Get-SCVirtualFloppyDrive -All [-VMMServer <ServerConnection> ] [ <CommonParameters>]
Parameter Set: HardwareProfile
Get-SCVirtualFloppyDrive -HardwareProfile <HardwareProfile> [ <CommonParameters>]
Parameter Set: Template
Get-SCVirtualFloppyDrive -VMTemplate <Template> [ <CommonParameters>]
Parameter Set: VM
Get-SCVirtualFloppyDrive -VM <VM> [ <CommonParameters>]
Detailed Description
The Get-SCVirtualFloppyDrive cmdlet gets one or more virtual floppy drive objects in a Virtual Machine Manager (VMM) environment from a virtual machine object, a virtual machine template object, or a hardware profile object.
In VMM, each virtual machine, virtual machine template, or hardware profile has one floppy drive. You cannot remove this floppy drive or add any additional floppy drives.
By default, the virtual floppy drive is configured as attached to no media. To configure the virtual floppy drive to use the physical floppy drive on the virtual machine host, typically, drive A:, use the Set-SCVirtualFloppyDrive cmdlet. Alternatively, you can configure the virtual floppy drive to read an existing virtual floppy disk.
Parameters
-All
Retrieves a full list of all subordinate objects independent of the parent object. For example, the command Get-SCVirtualDiskDrive -All
retrieves all virtual disk drive objects regardless of the virtual machine object or template object that each virtual disk drive object is associated with.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
-HardwareProfile<HardwareProfile>
Specifies a hardware profile object.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
-VM<VM>
Specifies a virtual machine object.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
-VMMServer<ServerConnection>
Specifies a VMM server object.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
-VMTemplate<Template>
Specifies a VMM template object used to create virtual machines.
Aliases |
Template |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
<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.
- VirtualFloppyDrive
Notes
- Requires a virtual machine object, virtual machine template object, or hardware profile object, which can be retrieved by using the Get-SCVirtualMachine, Get-SCVMTemplate, or Get-SCHardwareProfile cmdlets, respectively.
Examples
Example 1: Get the virtual floppy drive from a virtual machine
The first command gets the virtual machine object named VM01, and then stores the object in the $VM variable.
The second command gets the virtual floppy drive object on VM01, and then displays information about this drive.
PS C:\> $VM = Get-SCVirtualMachine -Name "VM01"
PS C:\> Get-SCVirtualFloppyDrive -VM $VM
Example 2: Get the virtual floppy drive from a virtual machine template
The first command gets the virtual machine template object named VMTemplate01, and then stores the object in the $VMTemplate variable.
The second command gets the virtual floppy drive object on VMTemplate01, and then displays information about the drive to the user.
PS C:\> $VMTemplate = Get-SCVMTemplate | where { $_.Name -eq "VMTemplate01" }
PS C:\> Get-SCVirtualFloppyDrive -VMTemplate $VMTemplate
Example 3: Get the virtual floppy drive from a hardware profile
The first command gets the hardware profile named NewHWProfile01, and then stores the object in the $HWProfile variable.
The second command gets the virtual floppy drive object on NewHWProfile01 and displays information about the drive.
PS C:\> $HWProfile = Get-SCHardwareProfile | where { $_.Name -eq "NewHWProfile01" }
PS C:\> Get-SCVirtualFloppyDrive -HardwareProfile $HWProfile