2023年5月28日星期日

How to Completely Uninstall WSL on Windows 10 & 11 2023

 How to Completely Uninstall WSL on Windows 10 & 11

Here are the steps to completely uninstall WSL (Windows Subsystem for Linux) on Windows 10 or 11:

1.Open PowerShell as Administrator. Type PowerShell in the Start menu search bar and right-click PowerShell > Run as administrator.

  1. Run the following command to uninstall WSL:Chuwi hi10 x

Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

  1. Uninstall any Linux distributions you have installed. For example, to uninstall Ubuntu run:

wsl --unregister Ubuntu

You'll need to repeat this step for any other Linux distributions you have installed like DebianKali Linux, etc.

  1. Remove any Linux virtual disk files (VHDs). By default they are located at:
    C:\Users<username>\AppData\Local\Packages[CanonicalGroupLimited](poe://www.poe.com/_api/key_phrase?phrase=CanonicalGroupLimited&prompt=Tell%20me%20more%20about%20CanonicalGroupLimited.).UbuntuonWindows_79rhkp1fndgsc[LocalState](poe://www.poe.com/_api/key_phrase?phrase=LocalState&prompt=Tell%20me%20more%20about%20LocalState.)\ext4.vhdx

Delete that entire folder. Repeat for any other Linux distributions you had installed.laptop bildschirm schwarz

5.Delete the WSL registry keys:

• HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss
• HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Lxss

  1. Restart your computer for the changes to take full effect.

  2. Optional: If you want to completely remove WSL and install a fresh version, you can reset the feature store:

dism /online /ResetFeature /FeatureName:Microsoft-Windows-Subsystem-Linux

Then you can re-enable and reinstall WSL following Microsoft's official documentation.

Let me know if you have any other questions!

没有评论:

发表评论

注意:只有此博客的成员才能发布评论。

Also Read: