terminal icon indicating copy to clipboard operation
terminal copied to clipboard

When I run Windows Terminal as admin cannot start WSL

Open svpudik opened this issue 6 years ago • 5 comments

Environment

OS version: 10.0.18362 N/A Build 18362 Windows Terminal version (if applicable):0.9.433.0

Any other software? WSL

Steps to reproduce

run windows terminal as admin

Expected behavior

ability run WSL in same window as powershell

Actual behavior

WSL is visible when i start Windows terminal as standard user but when I start it as Administrator WSL is not visible in menu.

svpudik avatar Mar 10 '20 08:03 svpudik

OS version: 19041.113 (Insider Slow) Windows Terminal version: 0.9.433.0

I am unable to reproduce this issue. When I run WT as administrator, Ubutnu-18.04 is visible and usable. image

DarthJahus avatar Mar 10 '20 10:03 DarthJahus

@svpudik Are you maybe using another user account to elevate the Terminal? Or are you using the currently logged-in user?

If you try running WSL manually in an admin Windows Terminal instance, does that still work? What's the output of wsl -l in both an unelevated and an elevated Windows Terminal window?

zadjii-msft avatar Mar 10 '20 13:03 zadjii-msft

I am running admin as logged user. here is screen ad admin: image screen without admin: image screen of wsl -l ad admin have not enough priviledges: image What I have to modify to provide there admin access? here is my config uid": "{2c4de342-38b7-51cf-b940-2309a097f518}", "hidden": false, "name": "Ubuntu", "source": "Windows.Terminal.Wsl"

svpudik avatar Mar 15 '20 19:03 svpudik

That's certainly curious. @benhillis @craigloewen-msft any ideas why the user might not be able to see any linux distros while they're running as admin?

zadjii-msft avatar Mar 16 '20 13:03 zadjii-msft

This may need to be filed on the WSL repository. Sorry!

DHowett-MSFT avatar Mar 16 '20 17:03 DHowett-MSFT