WslRegisterDistribution failed with error: 0x80370102

Hits: 45

First you need the check if the CPU Virtualization in your BIOS.

Second, check the Hyper-V Windows Feature, if this enabled.

If both of them enabled, I had fixes this problem with the following codee and rebooting system.

bcdedit /set hypervisorlaunchtype auto