terminal: error 0x800700c1 when launching `powershell.exe'
Environment Windows build number: Win32NT 10.0.18363.0 Microsoft Windows NT 10.0.18363.0 Windows Terminal version (if applicable): 1.0.1401.0
Steps to reproduce Open PowerShell tab within Windows Terminal. This same error occurred in previous versions.
Expected behavior PowerShell tab opens without error
Actual behavior [error 0x800700c1 when launching `powershell.exe’]
Additional information: I do not have “c:\program” as a file or folder.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 34 (11 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  around the executable’s path.For others like me with little experience, here’s how my PowerShell Core profile looks like:
Notice how the value for
commandline
starts with"\"
and ends with\""
.Just make sure to use your actual
guid
, i.e. the guid that appears in your settings.json file for PowerShell Core.Thanks @HylianSteel
Chiming in to say that I’ve experienced the same issue on one computer with a user that has a space in the user name (for example John Doe) but that issue is non-existent on another computer with another user that has a space in their name.
I did find that putting the command line parameter in quotes would get the ms store powershell version working with Terminal again.
Example: “C:\Users\USER NAME\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShell_8wekyb3d8bbwe\pwsh.exe” -nologo
This still happens to me on a PC that user name has my full name with space in the middle.
I am using Microsoft Store version of PowerShell 7.1 (to avoid manual updates)
[error 0x800700c1 when launching `C:\Users\Tigran Torosyan\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShell_8wekyb3d8bbwe\pwsh.exe’]
It worked perfectly!!!
Thank You @leobeeson!
wt.exe -p PowerShell powershell -f whatever.ps1