error 0x800700e2 when launching `powershell.exe' #16305

Closed
opened 2026-01-31 05:03:30 +00:00 by claunia · 5 comments
Owner

Originally created by @NareshChinnusamy on GitHub (Dec 29, 2021).

Windows Terminal version

1.11.3471.0

Windows build number

10.0.22000

Other Software

Software: Powershell
Version: 5.1

Steps to reproduce

  • I opened the windows terminal application from start.
  • Default profiles have been set for the PowerShell application in the windows terminal.
  • Powershell tab is opening with an error showing [error 0x800700e2 when launching `powershell.exe']
  • But the PowerShell is working fine during standalone launch.
  • And I have been able to access PowerShell via visual studio's terminal.

Expected Behavior

I'm expecting a new tab of PowerShell opening in the windows terminal without any issues.

Actual Behavior

The new tab of PowerShell always shows [error 0x800700e2 when launching `powershell.exe'].
I tried different fix approaches like adding PATH of PowerShell to environment variables but nothing is working.

Originally created by @NareshChinnusamy on GitHub (Dec 29, 2021). ### Windows Terminal version 1.11.3471.0 ### Windows build number 10.0.22000 ### Other Software Software: Powershell Version: 5.1 ### Steps to reproduce - I opened the windows terminal application from start. - Default profiles have been set for the PowerShell application in the windows terminal. - Powershell tab is opening with an error showing [error 0x800700e2 when launching `powershell.exe'] - But the PowerShell is working fine during standalone launch. - And I have been able to access PowerShell via visual studio's terminal. ### Expected Behavior I'm expecting a new tab of PowerShell opening in the windows terminal without any issues. ### Actual Behavior The new tab of PowerShell always shows [error 0x800700e2 when launching `powershell.exe']. I tried different fix approaches like adding PATH of PowerShell to environment variables but nothing is working.
Author
Owner

@eryksun commented on GitHub (Dec 29, 2021):

0x8007 in the high word means it's an HRESULT code for a Windows error code. 0x00E2 (226) in the low word is the Windows error code ERROR_VIRUS_DELETED. I doubt the same executable would be repeatedly reported as being infected by a virus instead of the file being moved to a quarantine location. Maybe Terminal is misreporting the exit status.

@eryksun commented on GitHub (Dec 29, 2021): 0x8007 in the high word means it's an `HRESULT` code for a Windows error code. 0x00E2 (226) in the low word is the Windows error code `ERROR_VIRUS_DELETED`. I doubt the same executable would be repeatedly reported as being infected by a virus instead of the file being moved to a quarantine location. Maybe Terminal is misreporting the exit status.
Author
Owner

@NareshChinnusamy commented on GitHub (Dec 29, 2021):

@eryksun Is there any other way to resolve this issue?

@NareshChinnusamy commented on GitHub (Dec 29, 2021): @eryksun Is there any other way to resolve this issue?
Author
Owner

@elsaco commented on GitHub (Dec 29, 2021):

@NareshChinnusamy you might try setting CMD as the default profile, launch windows terminal then start powershell.exe from CMD prompt or another tab and try to narrow down which is the potentially unwanted application

Since your terminal crashes upon launch you might have to directly edit settings.json file.

Also, you could launch CMD profile by running wt.exe --profile "Command Prompt" from win+r

@elsaco commented on GitHub (Dec 29, 2021): @NareshChinnusamy you might try setting `CMD` as the default profile, launch windows terminal then start `powershell.exe` from `CMD` prompt or another tab and try to narrow down which is the `potentially unwanted application` Since your terminal crashes upon launch you might have to directly edit `settings.json` file. Also, you could launch CMD profile by running `wt.exe --profile "Command Prompt"` from `win+r`
Author
Owner

@zadjii-msft commented on GitHub (Jan 3, 2022):

What's your PATH set to in a cmd.exe tab?

Are you using any sore of antivirus software?

@zadjii-msft commented on GitHub (Jan 3, 2022): What's your `PATH` set to in a cmd.exe tab? Are you using any sore of antivirus software?
Author
Owner

@ghost commented on GitHub (Jan 7, 2022):

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.

@ghost commented on GitHub (Jan 7, 2022): 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**.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16305