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

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

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 9
  • Comments: 27 (3 by maintainers)

Commits related to this issue

Most upvoted comments

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

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

I encountered the same problem while launching Windows Terminal via the “Open in Windows Terminal” context menu. Everything works fine if I directly open Windows Terminal by clicking its icon.

P.S. I have powershell in the PATH env variable.

Same error here