How to deal with the problem: “Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG”

sulthan bin salahudeen 10 Reputation points
2024-01-25T15:43:12.9433333+00:00

When I enter "wsl" on the PowerShell, the System prompts, Class not registered Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG

Windows Features

Hyper-V: Enabled

Virtual Machine Platform: Enabled

Windows Hypervisor Platform: Enabled

Windows Subsystem for Linux: Enabled

BIOS: VT enabled

I have tried "disabling/enabling the “Windows Subsystem for Linux” from "Turn Windows Features on or off"

This issue prevents opening Ubuntu on Windows

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,727 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Hania Lian 16,016 Reputation points Microsoft Vendor
    2024-01-29T07:41:59.4933333+00:00

    Hello, Thank you for posting in Q&A forum. To fix "Class not registered" error, you can repair WSL on "Settings > Applications > Installed Applications > Windows Subsystem for Linux > Advanced Options > Repair". If above method doesn't work, you can try below steps:

    1. Saving the virtual disk
    2. Uninstalling Windows Subsystem for Linux Preview
    3. Installing Windows Subsystem for Linux Preview without rebooting Or you can try downloading the latest stable MSI release of WSL from the Microsoft WSL releases page. Best Regards,
      Hania Lian ============================================ If the Answer is helpful, please click "Accept Answer" and upvote it.
    4 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.