Disable the floppy drive on Windows VMs

22 May 2015
I spend a lot of time in Hyper-V Windows VMs. By default there is always a Drive A: for a possible Floppy Drive, even in Windows Server 2016.
Hyper-V gives you the option to specify a floppy disk image, but I think I never ever used that.
So in my setup script for a new machine I always have a line to disable that drive because it annoys me in Explorer:
devcon.exe disable FDC\GENERIC_FLOPPY_DRIVE*
Devcon is a Microsoft tool but is not part of the OS. You can download it from support.microsoft.com
With Windows Server 2016 and Windows 10, you don't need that anymore, because we now have the PnPDevice cmdlets, now I can use:
Get-PnpDevice -Class FloppyDisk | Disable-PnpDevice -Confirm:$false
Now I have to find out whether DSC has a resource for this as well.

Pages in this section

Categories

ASP.Net | Community | Development | IIS | IT Pro | Security | SQL (Server) | Tools | Web | Work on the road | Windows