WSL: Opening Bash as Administrator returns error 0x80070005
This bug-tracker is monitored by developers and other technical types. We like detail! So please use this form and tell us, concisely but precisely, what’s up. Please fill out ALL THE FIELDS!
If you have a feature request, please post to the UserVoice.
If this is a console issue (a problem with layout, rendering, colors, etc.), please post to the console issue tracker.
Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues. Instead, send dumps/traces to secure@microsoft.com, referencing the GitHub bug number. Ideally, please configure your machine to capture minidumps, repro the issue, and send the minidump from "C:\Windows\minidump".
-
Your Windows build number: (Type
verat a Windows Command Prompt) 10.0.16299.371 -
What you’re doing and what’s happening: (Copy&paste specific commands and their output, or include screen shots)

-
What’s wrong / what should be happening instead: I used to be able to open the bash shell as administrator, now i cannot
-
Strace of the failing command, if applicable: (If
some_commandis failing, then runstrace -o some_command.strace -f some_command some_args, and link the contents ofsome_command.stracein a gist here)
See our contributing instructions for assistance.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 2
- Comments: 16 (1 by maintainers)
I had the exactly opposite problem. Error 0x80070005 appeared unless I launched the distro in Elevated shell (open as Admin). It was a permissions issue. This is what I did to fix it.
cd G:\WSL\Alpine)icacls.exe . /grant "%username%:(OI)(CI)(F)"After that I can install the distro without launching it as Admin.So if you have problems with opening bash as Admin you should first locate the distro executable and update the permissions of that folder for Administrators user.
icacls.exe . /grant "Administrators:(OI)(CI)(F)"