Reconfigure Hyper-V External switch to the correct Network Adapter

If you use Hyper-V on your laptop, you will probably recognize this... You work at home, go to the Office and use Wi-Fi instead of the wired connection at home. You boot your VM and... No network?! *sigh* And you have to change the External Switch again in your Hyper-V configuration. In this blog post, I will show you how to change it automatically using PowerShell.

Compact Hyper-V VHDX files using PowerShell

I used VMware Workstation for a while which has an option to automatically compact the virtual hard disk after shutting down the VM, an excellent way of freeing up space on my laptop hard drive. But I switched to using only Hyper-V now. Compacting virtual hard disks is not something you can enable in Hyper-V to run automatically. In this blog post, I will show you how to do this using a script that you can use to do that easily 🙂