-
Notifications
You must be signed in to change notification settings - Fork 832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wsl --update
and MSI require Admin rights
#11652
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Closed similar issues:
|
And def aligned w #10591 as I see the same signature with it stuck on 2.0.0.0. Now given WSL was pulled from the Store that really might be a hint that installs and updates really need elevation now. I did check and I can install the MSI as SYSTEM, but running So would be great to get the confirmation that |
@byjrack: if you have the store installed, you should be able to update via the store once WSL is installed. You can use this link to access the WSL page: https://aka.ms/wslstorepage |
Yeah doesn't seem to work as Store isn't keeping it updated and if it requires admin from 2.0.0 forward that won't work. https://apps.microsoft.com/detail/9p9tqf7mrm4r still exists which is what we had syndicated via Intune, but looks to not have been updated in a while. |
The store app is up to date. It's currently on the latest release (2.1.5). |
¯_(ツ)_/¯ Maybe it's the lack of admin rights for users, but doesn't seem to be working for us or we are syndicating the wrong store id. So is there a method to keep wsl updated without admin? If Store is that method I can dig into ime logs to see if there is something, but if it's not using msix model than given the user scope it would fail. I know when I checked Winget as well I only got the Microsoft.wsl entry as well from Winget portal and not the Store entry. That's why I figured the Store option was on ice. |
Windows Version
10.0.22621.3593
WSL Version
2.0.0.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.123.1-1
Distro Version
n/a
Other Software
n/a
Repro Steps
wsl --update
fails with a 1603 (attempt to update to 2.1.5 gives a Wsl/UpdatePackage/E_ABORT)Download of 2.1.5 from releases and install as MSI also requires Admin for all actions in the MSI. Tried MSIINSTALLPERUSER but no change.
winget install Microsoft.WSL
shows the VMP and OS feature requirement which are already installed, but the get-optfeature and capability cmdlets require elevation so status may be inaccurate.Expected Behavior
Updates would function without Admin
Actual Behavior
Updates require Admin
Diagnostic Logs
I am just trying to get a consistent approach to managing WSL in the environment. It seemed like with it in Store and semi-recent updates it was happy to update as a User. UAC requires some extra steps in my org so it pushes me into a bunch of extra activities and overhead to keep WSL up to date. I get that WSL2 needs to play with some OS level features like Host Network Service so if maintaining WSL requires Admin I can work to that as the standard, but it seems like a moving target.
wsl-install-logs.txt
The text was updated successfully, but these errors were encountered: