Wsl: GUI Method

Created on 10 Oct 2018  Â·  12Comments  Â·  Source: MicrosoftDocs/WSL

I tried this method, but got the next message:
"'Enable-WindowsOptionalFeature' is not recognized as an internal or external command,operable program or batch file."
If you have the same problem you can use the GUI method instead: Start >> Windows Features >> Turn Windows Features on or off >> checkbox 'Windows Subsystem for Linux'. After that your PC will ask you to reboot.

Good luck and have fun using the Linux distro under Windows


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Most helpful comment

Actually it's the error message you get when you're not running admin PowerShell. (Right-click > Run as administrator)

All 12 comments

From that error message it looks like you tried using the Command Prompt instead of PowerShell.

Actually it's the error message you get when you're not running admin PowerShell. (Right-click > Run as administrator)

Actually it only seem to work in the OS original powershell admin. If you have updated to PS 6.1+ (using pwsh) you will get this error even if admin.

@e3v3a that is not WSL related. I'd file it with the PS Core folks first

@DarthSpock
Sorry, I don't see how this is not WSL related. Seem exactly related to me. Please explain.

Also, as you can see, I am not a developer for MS, so I am only reporting my findings.

Because PS Core is NOT Windows Powershell. It's made to be cross-platform. Therefore modules that are in Windows are not available by default in PS Core. They just released compatibility to utilize the builtin Windows PS modules just before the holiday so you can use commands typically found in Windows PS. That's why it's not a WSL actionable. The WSL team has no control or say in what the PS Core team does. I don't work for MS either but certain things should be obvious. It's possible the WSL team could do something on their end but that's time and resources being taken away from more important things like getting Docker, Fuse, and CUDA/OpenCL/Vulkan working for example. That's their focus and considering those are the biggest requests out there, I'd want them to stick with that, not reinvent how to install via PS, especially when they don't have any control over PS.

Aha. This seem awfully confusing, but thanks for trying to explain. Never understood why you would call something PowerShell Core but not being related to PowerShell.

Anyway, the windows logo in your avatars and using repo MicrosoftDocs gave the impression that you are working for MS.

i was checking the docs and noticed more issues and used the lazy feature of signing into GitHub from MS Docs

Actually it only seem to work in the OS _original_ powershell admin. If you have updated to PS 6.1+ (using pwsh) you will get this error even if admin.

Confirmed - this was my problem.

From that error message it looks like you tried using the Command Prompt instead of PowerShell.

True ...

PS7 should help if run in Administrator mode. It depreciated the Windows compatibility module and uses built-in compatibility support to utilize Windows Powershell modules. In other words, it shouldn't matter which PS you use now as long as you're using the stable LTS. But if issues are Still arising, then again, file it with the PS folks.

Thanks for all of the helpful input and PowerShell context! Closing this issue as it appears to be resolved and not require a docs update.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

taoyichen picture taoyichen  Â·  8Comments

thesmart picture thesmart  Â·  6Comments

SetTrend picture SetTrend  Â·  4Comments

shaunluttin picture shaunluttin  Â·  6Comments

m4tt72 picture m4tt72  Â·  4Comments