WSL issue: cannot execute C:WindowsSystem32Bash.exe from elevated PowerShell - “access is denied” - works...

Why do neural networks need so many training examples to perform?

Can we harness gravitational potential energy?

Move fast ...... Or you will lose

Why zero tolerance on nudity in space?

Slow While Loop, Query Improvment Assistance

How do you funnel food off a cutting board?

How old is the day of 24 equal hours?

Why am I able to open Wireshark in macOS without root privileges?

Why are the books in the Game of Thrones citadel library shelved spine inwards?

Increment each digit in a number to form a new number

Is there any risk in sharing info about technologies and products we use with a supplier?

Early credit roll before the end of the film

Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?

Difference between i++ and (i)++ in C

How can I get my players to come to the game session after agreeing to a date?

Cat is tipping over bed-side lamps during the night

What's a good word to describe a public place that looks like it wouldn't be rough?

Why is it that Bernie Sanders is always called a "socialist"?

Has any human ever had the choice to leave Earth permanently?

Consequences of lack of rigour

When can a QA tester start his job?

What are the exceptions to Natural Selection?

Play Zip, Zap, Zop

Graph with overlapping labels



WSL issue: cannot execute C:WindowsSystem32Bash.exe from elevated PowerShell - “access is denied” - works in normal CMD prompt (no admin rights)


Is it in any way possible to uninstall PowerShell from Vista?Execute command prompt file (.cmd) from within a PowerShell script?Bash on Windows / Windows Subsytem for Linux (WSL) not installing correctly / hangsUnable to uninstall Universal Apps through PowerShellHow do I install and import the Powershell Community Extensions for a normal user?Windows 10 inbox will not syncWSL Bash doesn't startOpenSSH Server for Windows 10 - Could not enter anything in Ubuntu terminal launched from cmd / powershell SSH sessionHow to Always run Windows Store App as AdministratorCannot type in cmd- or Powershell-window when run from Powershell as different user in Windows 10













1















I have an issue with WSL (Windows Subsystem for Linux) in PowerShell. If I run the Ubuntu 18.04 LTS app (the UWP app) it works as expected. However, if I run and run Bash.exe from an elevated PowerShell prompt, it fails with simply:



enter image description here



I opened C:WindowsSystem32 then took ownership and granted Full-Rights to Bash.exe for myself. However, the issue persists. How can I fix this? I have also tried:

- Uninstalling the Ubuntu UWP App, removing WSL via add/remove features

- Re-adding WSL via add/remove and reinstalling the Ubuntu UWP App: no change



Update: I have found that I can run Bash.exe in a normal (non-admin) CMD or PowerShell prompt! Weird.



Bump: anyone?










share|improve this question

























  • What commands are you running exactly. You should not have to take ownership of any files to run the WSL instance of your choice

    – Ramhound
    Feb 8 at 18:34











  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.

    – Ramhound
    Feb 8 at 18:34











  • I am only running Bash.exe to try and drop into a session, nothing more.

    – SamAndrew81
    Feb 8 at 18:35











  • I don't have any problem running bash.exe from both CMD and PowerShell. I don't know what went wrong at your end, but perhaps uninstalling Ubuntu and installing may fix it.

    – harrymc
    Feb 8 at 18:45






  • 1





    Does ubuntu.exe or wsl.exe work in same environment?

    – Biswapriyo
    Feb 8 at 19:19
















1















I have an issue with WSL (Windows Subsystem for Linux) in PowerShell. If I run the Ubuntu 18.04 LTS app (the UWP app) it works as expected. However, if I run and run Bash.exe from an elevated PowerShell prompt, it fails with simply:



enter image description here



I opened C:WindowsSystem32 then took ownership and granted Full-Rights to Bash.exe for myself. However, the issue persists. How can I fix this? I have also tried:

- Uninstalling the Ubuntu UWP App, removing WSL via add/remove features

- Re-adding WSL via add/remove and reinstalling the Ubuntu UWP App: no change



Update: I have found that I can run Bash.exe in a normal (non-admin) CMD or PowerShell prompt! Weird.



Bump: anyone?










share|improve this question

























  • What commands are you running exactly. You should not have to take ownership of any files to run the WSL instance of your choice

    – Ramhound
    Feb 8 at 18:34











  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.

    – Ramhound
    Feb 8 at 18:34











  • I am only running Bash.exe to try and drop into a session, nothing more.

    – SamAndrew81
    Feb 8 at 18:35











  • I don't have any problem running bash.exe from both CMD and PowerShell. I don't know what went wrong at your end, but perhaps uninstalling Ubuntu and installing may fix it.

    – harrymc
    Feb 8 at 18:45






  • 1





    Does ubuntu.exe or wsl.exe work in same environment?

    – Biswapriyo
    Feb 8 at 19:19














1












1








1


2






I have an issue with WSL (Windows Subsystem for Linux) in PowerShell. If I run the Ubuntu 18.04 LTS app (the UWP app) it works as expected. However, if I run and run Bash.exe from an elevated PowerShell prompt, it fails with simply:



enter image description here



I opened C:WindowsSystem32 then took ownership and granted Full-Rights to Bash.exe for myself. However, the issue persists. How can I fix this? I have also tried:

- Uninstalling the Ubuntu UWP App, removing WSL via add/remove features

- Re-adding WSL via add/remove and reinstalling the Ubuntu UWP App: no change



Update: I have found that I can run Bash.exe in a normal (non-admin) CMD or PowerShell prompt! Weird.



Bump: anyone?










share|improve this question
















I have an issue with WSL (Windows Subsystem for Linux) in PowerShell. If I run the Ubuntu 18.04 LTS app (the UWP app) it works as expected. However, if I run and run Bash.exe from an elevated PowerShell prompt, it fails with simply:



enter image description here



I opened C:WindowsSystem32 then took ownership and granted Full-Rights to Bash.exe for myself. However, the issue persists. How can I fix this? I have also tried:

- Uninstalling the Ubuntu UWP App, removing WSL via add/remove features

- Re-adding WSL via add/remove and reinstalling the Ubuntu UWP App: no change



Update: I have found that I can run Bash.exe in a normal (non-admin) CMD or PowerShell prompt! Weird.



Bump: anyone?







windows-10 powershell windows-subsystem-for-linux






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 13 mins ago







SamAndrew81

















asked Feb 8 at 18:27









SamAndrew81SamAndrew81

136517




136517













  • What commands are you running exactly. You should not have to take ownership of any files to run the WSL instance of your choice

    – Ramhound
    Feb 8 at 18:34











  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.

    – Ramhound
    Feb 8 at 18:34











  • I am only running Bash.exe to try and drop into a session, nothing more.

    – SamAndrew81
    Feb 8 at 18:35











  • I don't have any problem running bash.exe from both CMD and PowerShell. I don't know what went wrong at your end, but perhaps uninstalling Ubuntu and installing may fix it.

    – harrymc
    Feb 8 at 18:45






  • 1





    Does ubuntu.exe or wsl.exe work in same environment?

    – Biswapriyo
    Feb 8 at 19:19



















  • What commands are you running exactly. You should not have to take ownership of any files to run the WSL instance of your choice

    – Ramhound
    Feb 8 at 18:34











  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.

    – Ramhound
    Feb 8 at 18:34











  • I am only running Bash.exe to try and drop into a session, nothing more.

    – SamAndrew81
    Feb 8 at 18:35











  • I don't have any problem running bash.exe from both CMD and PowerShell. I don't know what went wrong at your end, but perhaps uninstalling Ubuntu and installing may fix it.

    – harrymc
    Feb 8 at 18:45






  • 1





    Does ubuntu.exe or wsl.exe work in same environment?

    – Biswapriyo
    Feb 8 at 19:19

















What commands are you running exactly. You should not have to take ownership of any files to run the WSL instance of your choice

– Ramhound
Feb 8 at 18:34





What commands are you running exactly. You should not have to take ownership of any files to run the WSL instance of your choice

– Ramhound
Feb 8 at 18:34













Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.

– Ramhound
Feb 8 at 18:34





Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.

– Ramhound
Feb 8 at 18:34













I am only running Bash.exe to try and drop into a session, nothing more.

– SamAndrew81
Feb 8 at 18:35





I am only running Bash.exe to try and drop into a session, nothing more.

– SamAndrew81
Feb 8 at 18:35













I don't have any problem running bash.exe from both CMD and PowerShell. I don't know what went wrong at your end, but perhaps uninstalling Ubuntu and installing may fix it.

– harrymc
Feb 8 at 18:45





I don't have any problem running bash.exe from both CMD and PowerShell. I don't know what went wrong at your end, but perhaps uninstalling Ubuntu and installing may fix it.

– harrymc
Feb 8 at 18:45




1




1





Does ubuntu.exe or wsl.exe work in same environment?

– Biswapriyo
Feb 8 at 19:19





Does ubuntu.exe or wsl.exe work in same environment?

– Biswapriyo
Feb 8 at 19:19










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1403625%2fwsl-issue-cannot-execute-c-windows-system32-bash-exe-from-elevated-powershell%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1403625%2fwsl-issue-cannot-execute-c-windows-system32-bash-exe-from-elevated-powershell%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...