terminal: Opening a tab for PowerShell Core fails with 0x800700c1

Environment

Windows build number: 10.0.19041.0
Windows Terminal version (if applicable): 1.1.2021.0

Any other software:
- Visual Studio Community 2019 - 16.7
- Visual Studio Code - 1.47.3
- Cmder - 180626

Steps to reproduce

  1. Reset settings.json to defaults.json.
  2. Open the PowerShell tab. Note: Not Windows PowerShell.

Expected behavior

The PowerShell Core terminal is opened without reporting an error or at least gives a more descriptive and useful error message.

Actual behavior

Receive the following error: [error 0x800700c1 when launching 'C:\Program Files\PowerShell\7\pwsh.exe']

image

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (4 by maintainers)

Most upvoted comments

I just encountered the same problem with 1.3.2651.0, and I found a file named ‘Program’ in my C:\, which seemed to be executed instead of pwsh.exe, then I deleted it and it works fine now. I tested with creating an executable file C:\Program.exe, and it has been run by terminal this should be an issue when execute a file with path containing space