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

kdc 40 Reputation points
2023-12-15T04:58:19.9433333+00:00

I performed a system reset not long ago, and now when I enter "wsl" on the command line, the system prompts "Cannot find registration class, Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG", which also prevents me from opening windows docker

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,635 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,811 Reputation points Microsoft Vendor
    2023-12-19T07:35:47.4233333+00:00

    Hi,

    Please open "Turn Windows Features on or off" from the start menu, disable / enable the “Windows Subsystem for Linux” feature and see if the issue persists. Also give a try to the latest version of wsl.

    https://github.com/microsoft/WSL/releases

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Erik Eakins 0 Reputation points
    2024-02-07T19:11:35.5133333+00:00

    I've run into the same problem. After a windows reset, I'm unable to run wsl commands. User's image

    I've tried enabling and disabling the option multiple times with a restart in between, but it doesn't appear to make a difference.