press w+ R → Type optionalfeatures → Enter.
optionalfeatures
In the Windows Features window:
Make sure Hyper-V and Virtual Machine Platform are both checked.
For WSL2 users: Ensure Windows Subsystem for Linux is checked.