Skip to content
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

Access is denied in WIN11 #7882

Closed
1 of 2 tasks
tzyking1 opened this issue Dec 31, 2021 · 8 comments
Closed
1 of 2 tasks

Access is denied in WIN11 #7882

tzyking1 opened this issue Dec 31, 2021 · 8 comments

Comments

@tzyking1
Copy link

Version

10.0.22000.376

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

No response

Other Software

No response

Repro Steps

In power shell or cmd window, I want to run "wsl", but got a "access is denied"

Expected Behavior

WSL can work properly

Actual Behavior

WSL can't work anymore

Diagnostic Logs

wsl_log.zip

@tzyking1
Copy link
Author

I also tried some other commands, like:
wsl --set-version xxxx
wsl --mount xxxx
All of them got "access is denied"

@tzyking1
Copy link
Author

After I perform "--set-default-version 1", I can install the "Ubuntu-18.04(wsl-1)",
but when I tried to "wsl --set-version Ubuntu-18.04 2", I also got the "access is denied"..
That is so frustrate. Many source codes in my wsl2... I can't open them now..
Who can help me?

@DanPinGF
Copy link

DanPinGF commented Jan 1, 2022

You need to be running as an administrator. That is what’s causing the problem.

@benhillis
Copy link
Member

Looks like creating the virtual network is failing. I will follow up with the networking team to see if they can determine why.

@Keith-Mange
Copy link

Keith-Mange commented Jan 4, 2022

It would be great if you could do the following:

  1. starthnstrace.ps1
  2. Repro
  3. Stop the trace in 1
  4. collectlogs.ps1

The trace initiated in 1 will give us more information on the failure.

The files gathered in 4 will gives us more state and system logs.

Thanks,
Keith

@ghost
Copy link

ghost commented Jan 19, 2022

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

@zerofo
Copy link

zerofo commented Apr 1, 2022

same issue
user: Administrator

PS C:\Windows\System32> wsl
Access is denied

@csh0101
Copy link

csh0101 commented Jul 2, 2022

hava you solved it?

i have the smae problem

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants