terminal: when i open the windows terminal ,it`s show [error 0x80070002 when launching `powershell.exe']
when i open the windows terminal ,its show [error 0x80070002 when launching
powershell.exe’]
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 14
- Comments: 29 (9 by maintainers)
Commits related to this issue
- Hardcode the paths to Windows PowerShell and CMD Occasionally, we get users with corrupt PATH environment variables: they can't lauch PowerShell, because for some reason it's dropped off their PATH. ... — committed to microsoft/terminal by DHowett 4 years ago
- Hardcode the paths to Windows PowerShell and CMD (#6684) Occasionally, we get users with corrupt PATH environment variables: they can't lauch PowerShell, because for some reason it's dropped off the... — committed to microsoft/terminal by DHowett 4 years ago
- Hardcode the paths to Windows PowerShell and CMD (#6684) Occasionally, we get users with corrupt PATH environment variables: they can't lauch PowerShell, because for some reason it's dropped off thei... — committed to microsoft/terminal by DHowett 4 years ago
- Hardcode the paths to Windows PowerShell and CMD (#6684) Occasionally, we get users with corrupt PATH environment variables: they can't lauch PowerShell, because for some reason it's dropped off thei... — committed to microsoft/terminal by DHowett 4 years ago
- Update Fork (#1) * Draw the cursor underneath text, and above the background (#6337) ## Summary of the Pull Request ![textAboveCursor003](https://user-images.githubusercontent.com/18356694/8368... — committed to ThunderPower/terminal by ThunderPower 4 years ago
After updating my PATH with
My CMD can call PS now !
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
at the top of the list, it seems to be working nowThis bug still exists and should be reopened.
I have the same problem. I know that my PATH variables are damaged, WT was not working before 0.8.10091.0
I think in some windows update my PATH got messed up. I have faced many problems because of it. Currently I cannot reinstall everything, Can we fix the path variables ?
When I try to launch PS from cmd, cmd cannot find PS, but the same is not true for my Windows sandbox env.
I am just hoping to fix my PATH, and use WT easily.
Thanks, Malhar
Edit:
Windows sandbox
My current env
Have you tried this solution ?
In case this helps someone else.
Installing a preview version of Powershell 7 places the following in the PATH:
C:\Program Files\PowerShell\7-preview\preview
Which contains
pwsh-preview.cmd
notpwsh.exe
. Sopwsh
orpwsh.exe
will not work.Change this to
C:\Program Files\PowerShell\7-preview\
and it works fine.Sorry about that. We don’t actually have extensions or the “wt install” command right now. We are tracking that in #4000
i have the same problem when trying to install link-preview,
C:\Users\User>wt install link-preview
and then it goes :
[error 0x80070002 when launching 'install link-preview']
“Windows Powershell” is the name of a profile, not an executable, so you must put
-p
before it.