Macos Big Sur Restore To Factory

I have no trouble with installing and capturing Windows 10 images with a generation 1 VM in Hyper-V. It has always just worked. But with Windows 11, I can't find a way to actually capture a .wim image of the VM.