-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening a tab for PowerShell Core fails with 0x800700c1 #7195
Comments
0x800700c1 is HRESULT_FROM_WIN32(ERROR_BAD_EXE_FORMAT), "%1 is not a valid Win32 application." Giving "a more descriptive and useful error message" is #7186. However, ERROR_BAD_EXE_FORMAT seems a bit of a special case because the error message contains "%1". Possible ways to implement:
I wonder what caused the error in the first place. IIRC, ERROR_BAD_EXE_FORMAT is usually caused by trying to run a 64-bit program on a 32-bit system, but that seems unlikely here because the PowerShell installer should have failed in that case. Are you able to run |
Yes, I can start up PowerShell Core by using Win+R and pasting Typing |
This is wild! And if you run Just to confirm: other profiles work fine, right? |
Yes, it starts up fine from
|
@DigiBanks99 how did you install the Terminal? The Store, Also how did you install powershell 7? |
I installed both the Terminal from the Windows Store and I installed PowerShell 7 via the My CPU architecture is x64. I'm using Windows 10 Home on version 2004. |
I have exactly the same issue in most respects, the error reported is exactly the same and I can open in all the ways described with the same results. I am not sure if this is relevant but the install was a bit odd. I had powershell preview installed from store (7.1.0-preview.6) it told me that there was an update available and then I updated it via powershell, but I can't remember or find the blog post that it came from and rather than updating preview it installed another powershell 7.0.3 (not exactly an update and not the preview version) but my fault for not understanding the command I was entering. So Windows Terminal was already installed some time ago was working fine and then out of the blue I open another powershell tab and the error described happens and yes I can open it all the other ways but windows terminal is dead to powershell. Any help apreciated. |
Any news? |
Two Process Monitor traces of
|
Marking this as feedback for the procmon trace. Thanks @KalleOlaviNiemitalo |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
I'm not sure I understand what you are asking me to do? |
@KalleOlaviNiemitalo Could you help walk @DigiBanks99 through the process of grabbing a procmon race? I'm not as familiar with procmon so I'm not totally sure how to do it myself 😆 |
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. |
Thank you! This was exactly my problem. I wonder what put that file there in the first place? Having deleted the C:\Program file fixed my issue. 😊 |
Wtf is this "Program" File??? Thanks this fixed the problem for me too. |
Same, I deleted the C:\Program file and it solved my problem. |
Seriously? Thanks for the tips, it fixes my issue. |
Environment
Steps to reproduce
settings.json
todefaults.json
.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']
The text was updated successfully, but these errors were encountered: