Author Archives: max

Clean up unused Hyper-V disks with PowerShell

At times, you may find that orphaned vhdx and avhdx files are filling up your physical disk. You may have deleted the virtual machines in the Hyper-V console earlier, but their disks were never cleaned up. The script below lists all vhdx and avhdx files in a certain location and checks in Hyper-V if they… Read More »

Add x86 images after ADK update to 22621 (Windows 11 22H2)

With the ADK for Windows 22H2, Microsoft has dropped support for x86 images. When you try to add or update an x86 image in ConfigMgr you’ll get an error. The workaround is simple: Locate the PE image in the ADK installation folder (usually C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment), copy the amd64… Read More »

Setting Wallpaper, Lock Screen, Registered Owner with Intune

The solution below will apply customizations to the clients that are mandatory, which means in particular that the user will not be able to change the wallpaper on his machine. See the links below if you just want a pre-configuration that allows the user to change settings. You must provide a 1920×1200 image which will… Read More »

Powershell script to check if Azure AD Connect is affected by the vulnerability described in CVE-2021-36949

The script below will check if your Azure AD Connect is running a version affected by the vulnerability described in CVE-2021-36949. Affected versions are 1.6.4.0 and 2.0.3.0. #Disclaimer: This script is provided as-is with no warranties of any kindWrite-Host “Checking if your Azure AD Connect version is affected by the vulnerability described in CVE-2021-36949″Try{$params =… Read More »

Enable Windows 11 Insider Preview updates in Hyper-V

Here’s a short description on how to enable Windows 11 Insider Preview updates on Hyper-V machines. Set up a Hyper-V Generation 2 machine with Windows 10 21H1. Make sure the recent updates are installed. Configure 8192 MB RAM, 4 Processors and enable the TPM.           On the VM host, run  Set-VM -VMName… Read More »