Skip to content

Hyper-V

Completely remove Hyper-V Virtual Machines

Yes, I know, why not use Hyper-V console remove Virtual Machines? Thanks for Jokelainen Jouni gave me this idea about create this script! So as you know, when delete Virtual Machines from Hyper-V console, it left all the checkpoint hard disks and virtual hardisks behin. In a case, if you have lots of Hyper-V host, lots of Virtual Machines, it is pain in the ass to clean them up. So I came up this simple… 

Hyper-V: Remove virtual machine firmware file bootmgfw.efi

I often use virtual machines to test OSD, and usually I use same virtual machine again and again, because I don’t want to re-create my virtual machine and add it to my SCCM test collections. Yeah, I know I am lazy. 🙂 After reinstall the same virtual machine many times, you will notice there are many bootmgfw.efi in your VM settings–>Firmware. Here is the simple way delete all the bootmgfw.efi file at once. Use powershell.… 

How to manually enable Bitlocker on Hyper-V Gen 2 Virtual Machine

You can automatic enable Bitlocker on your Hyper-V Gen 2 virtual machine during OSD, please read Niall Brady’s post Here But if you already install a Hyper-V Gen 2 virtual machine, and you want to enable bitlocker, you can do it manually. Here are the steps: Open cmd as administrator Set XTS-AES256 Engryption REG.exe add “HKLM\Software\Policies\Microsoft\FVE” /v “EncryptionMethod” /t REG_DWORD /d 7 Allow enable bitlocker for no TPM chip REG.exe ADD “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\FVE” /v UseAdvancedStartup /t…