error 0x800700c1 when launching pwsh.exe #15820

Open
opened 2026-01-31 04:49:23 +00:00 by claunia · 0 comments
Owner

Originally created by @kkostrzewa-coupa on GitHub (Nov 9, 2021).

Windows Terminal version (or Windows build number)

1.11.2921.0

Other Software

pwsh.exe 7.2.0

Steps to reproduce

my terminal has C:\Users\Kevin Kostrzewa\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShell_8wekyb3d8bbwe\pwsh.exe in the Powershell profile (note the space between Kevin and *Kostrzewa()

Installing Visual Studio 2022 created a file called c:\users\Kevin to be created, containing some installation logs.

Terminal failed to launch pwsh.exe after, presumably because of the space in the terminal profile around powershell. I think this is related to https://github.com/microsoft/terminal/issues/7195

Expected Behavior

pwsh.exe to launch

NOTE: I think Terminal could be more resilient around pathing and launching the .exe so a file can't be injected ahead of it with clever space filled pathing. This may be a security issue, if c:\users\Kevin was attempted to be CreateProcess'ed.

Actual Behavior

[error 0x800700c1 when launching `C:\Users\Kevin Kostrzewa\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShell_8wekyb3d8bbwe\pwsh.exe']

Originally created by @kkostrzewa-coupa on GitHub (Nov 9, 2021). ### Windows Terminal version (or Windows build number) 1.11.2921.0 ### Other Software pwsh.exe 7.2.0 ### Steps to reproduce my terminal has **C:\Users\Kevin Kostrzewa\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShell_8wekyb3d8bbwe\pwsh.exe** in the Powershell profile (note the space between **Kevin** and **Kostrzewa*() Installing Visual Studio 2022 created a file called **c:\users\Kevin** to be created, containing some installation logs. Terminal failed to launch pwsh.exe after, presumably because of the space in the terminal profile around powershell. I think this is related to https://github.com/microsoft/terminal/issues/7195 ### Expected Behavior pwsh.exe to launch NOTE: I think Terminal could be more resilient around pathing and launching the .exe so a file can't be injected ahead of it with clever space filled pathing. This *may* be a security issue, if c:\users\Kevin was attempted to be CreateProcess'ed. ### Actual Behavior [error 0x800700c1 when launching `C:\Users\Kevin Kostrzewa\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShell_8wekyb3d8bbwe\pwsh.exe']
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15820