My installation of WSL fails with error 0x800f0831 when I try it either via powershell or via enable optional features.
Windows 1809, build 17763.678
PS C:\WINDOWS\system32> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Enable-WindowsOptionalFeature : Enable-WindowsOptionalFeature failed. Error code = 0x800f0831
At line:1 char:1
+ Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMException
+ FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand
I've run the following commands as suggested by some technet articles, but to no avail:
sfc /scannow
dism.exe /Online /Cleanup-image /Scanhealth
dism.exe /Online /Cleanup-image /Restorehealth
sc config wuauserv start=disabled
net stop bits
net stop appidsvc
net stop cryptsvc
net stop wuauserv
net stop wuauserv
rd /q /s %Systemroot%\SoftwareDistribution
rd /q /s %Systemroot%\system32\catroot2
del %Systemroot%\WindowsUpdate.log
sc config wuauserv start=auto
wuauclt /resetauthorization /detectnow
Any thoughts on how to move forward with this?