Installing Windows Updates on all your Hyper-V lab VMs using PowerShell and PSWindowsUpdate

I'm a Consultant who does a lot of Intune testing, and I use Hyper-V on my laptop with many VMs in customer environments. Some VMs are used more than others, but when you turn them on after a few weeks... They need updates and restarts, and I wanted to automate that process so that it can run in the background while working without me having to log in, click buttons, and track progress... In this blog post, I will show you how to automate that 🙂

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* You must 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.

Deploy a Hyper-V VM and register it for Autopilot automatically using PowerShell

I need a VM connected to the customer's tenant for Endpoint Manager testing. This involves deploying a Windows 10 or 11 VM, changing hardware settings (Secure Boot/TPM/Checkpoint settings), and registering it for Autopilot. This blog post will show you how to automate the process as much as possible.

Compact Hyper-V VHDX files using PowerShell

I used VMware Workstation for a while, which can 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. 🙂

Creating a Hyper-V VM running Evaluation versions of Windows server using PowerShell

Sometimes you want to test something, but... You must install a new VM on your machine, which takes time. Microsoft offers evaluation versions of its server operating systems in a VHD format. In a blog post, I will show you how to create a Windows Server VM based on a VHD file, which gets you up and running quickly 🙂