# Mount a VHDX (replace path with your own) Mount-DiskImage -ImagePath "D:\Win10_Ent_22H2.vhdx" $Drive = (Get-Volume -FileSystemLabel "Windows").DriveLetter + ':'