Set Hyper-V Boot Order with PowerShell

By default new VMs are created with a network adapter as the primary boot device. If you want to boot from DVD image, then HDD, as I do most of the time. It's a bit cumbersome, but you can do that in bulk with: Get-VM | Get-VMFirmware | ForEach-Object { $boot…

How to Disable Secure Boot in Hyper-V with PowerShell

If you're creating Linux VMs in Hyper-V, you need to disable SecureBoot. You can do this in bulk. Get-VM | Set-VMFirmware -EnableSecureBoot Off If you want to do that for a specific VM you can use the -VMName flag. Set-VMFirmware -VMName <VMName> -EnableSecureBoot Off…