1. Open command prompt or terminal on the Windows device as an Administrator.
  2. run the command wsl --install.
  3. run the command wsl.exe -d Ubuntu.
  4. Follow the prompt to create a default Unix user account.
  5. Follow the prompt to create a password for the Unix user account.

All done!

[!Note] There might be a pop up with some introductory information on WSL once the install is complete (Step 2).

For more information on WSL refer to the article on Microsoft Learn How to install Linux on Windows with WSL