wsl update needs admin privileges ?

Manju 110 Reputation points
2024-04-30T19:24:45.66+00:00

I was updating wsl today using wsl --update command. I was running this as a non-admin user from command terminal. When I was prompted to enter admin password, I closed the pop up without entering the password. But wsl update command continued and successfully updated wsl version. So I am wondering whether admin privilege is really needed ?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,777 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,381 questions
0 comments No comments
{count} votes

Accepted answer
  1. Azar 19,645 Reputation points
    2024-04-30T19:49:28.77+00:00

    Hi there Manju

    Thats a good question and thanks for posting on QandA platform

    In general, updating Windows Subsystem for Linux (WSL) using the wsl --update command should not require admin privileges. The wsl --update command is typically used to check for updates to the WSL components and install them if updates are available.

    It's possible that the prompt for admin credentials you encountered was related to a different operation or system process running concurrently with the WSL update. Without entering the admin password, the WSL update command should still proceed and attempt to update the WSL components within the user's context.

    If this helps kindly accept the answer thank smuch,


0 additional answers

Sort by: Most helpful