Access denied when trying to update Windows Subsystem for Linux (wsl)

Manuel Carrero 0 Reputation points
2025-01-22T20:22:15.34+00:00

Im using Visual studio code and it gives me this message "Windows Subsystem for Linux must be updated to the latest version to proceed. You can update by running 'wsl.exe --update'.

For more information please visit https://aka.ms/wslinstall

Press any key to install Windows Subsystem for Linux.

Press CTRL-C or close this window to cancel.

This prompt will time out in 60 seconds."

When I do what it ask for it gives me access denied im using windows 11.

I have tried using windows powershell in admin mode but it doesnt work, i also have tried Set-ExecutionPolicy AllSigned but same result

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,609 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,762 questions
0 comments No comments
{count} votes

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.