In vSphere 7.x and 8.x, legacy devices like floppy drives are often hidden from the vSphere Client UI. However, the configuration parameters (e.g., floppy0.present = "TRUE") remain in the .vmx file, causing the device to persist in the hardware metadata.
To remove hidden devices without manual .vmx editing or host-level SSH access, use the VMware PowerCLI Remove-FloppyDrive cmdlet:
NOTE: This command will make changes to the VM hardware configuration. Ensure you have a valid backup or snapshot of the VM before running bulk automation scripts.
(Recommendation: Power off the virtual machine before execution to ensure the configuration is committed without conflict.)
Connect-VIServer -Server "<vCenter_FQDN_or_IP>"Get-VM "<VM_Name>" | Get-FloppyDrive | Remove-FloppyDrive -Confirm:$falseGet-VM | Get-FloppyDrive | Remove-FloppyDrive -Confirm:$false