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
- Reset
settings.json
todefaults.json
. - 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']
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (4 by maintainers)
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