Terminal: error 0x80070002 when launching `powershell.exe'

Created on 20 May 2020  ·  17Comments  ·  Source: microsoft/terminal

Environment

Windows build number: 10.0.18363.778
Windows Terminal version: 1.0.1401.0 Store/GitHub & 1.0.1402.0 Preview

Steps to reproduce

Open Windows Terminal or open new tab Windows PowerShell

Expected behavior

Windows PowerShell is open

Actual behavior

Error message: [error 0x80070002 when launching `powershell.exe']

image

Needs-Attention Needs-Tag-Fix Needs-Triage

Most helpful comment

Just add the path of the power shell to the environment variable

Thank you. It works!
%systemroot%\System32\WindowsPowerShell\v1.0

image

All 17 comments

Weird, this seems like a _file not found_ error. You haven't changed your settings at all? What architecture are you on?

same error

Weird, this seems like a _file not found_ error. You haven't changed your settings at all? What architecture are you on?

Windows 10 Pro 64-bit.
No issue if I run powershell from Start Menu » Run or from right click Start button » PowerShell

同样的问题,无法解决

Just add the path of the power shell to the environment variable

Just add the path of the power shell to the environment variable

Thank you. It works!
%systemroot%\System32\WindowsPowerShell\v1.0

image

Just add the path of the power shell to the environment variable

Thanks.

Just add the path of the power shell to the environment variable

thanks,it works

Looks like this is resolved, thanks’

Just add the path of the power shell to the environment variable

Cool thanks,it works

Just add the path of the power shell to the environment variable

Thank you. It works!
%systemroot%\System32\WindowsPowerShell\v1.0

image

It worked like a charm! Thanks, man. ❤️

Just add the path of the power shell to the environment variable

thanks

guys I found solution!
basicly go to C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.0.1811.0_x64__8wekyb3d8bbwe //or wherever You app is instaled

copy the content to another folder, somewhere where You definitely have access to modify, i used new folder on my desktop

last step run WindowsTerminal.exe from that folder as admin.

image

Just add the path of the power shell to the environment variable

Thank you so much it works!

I suddenly had this issue occur today, not quite sure what has caused it since I haven't modified any path or env variables at all. Also discovered that I needed to also add %systemroot%\System32 to the PATH variable as well, since apps like ping were no longer working from PowerShell or Command Prompt.... _(good 'ol Windows 10)_

Also ran into this today. Wondering if it was part of the windows update that just rolled out. I have not changed my env vars in quite some time.

Looked into this a bit more the 20H2 windows build completely wiped out my PATHs in my computers env variables.

[edit]
Upgraded a second machine to 20H2 with the same results. My system environment paths got completely wiped.

Was this page helpful?
0 / 5 - 0 ratings