I have installed Windows PowerShell 7 and in my settings.json file, I have included: #9571

Closed
opened 2026-01-31 01:58:04 +00:00 by claunia · 1 comment
Owner

Originally created by @SaprativRay on GitHub (Jul 12, 2020).

I have installed Windows PowerShell 7 and in my settings.json file, I have included:

{
  "guid": "{fb0ad4d6-a0de-48b8-8feb-14df8467ad31}",
  "hidden": false,
  "name": "Windows PowerShell 7",
  "commandline": "pwsh.exe"
}

Now when I am starting this profile, it says:
[error 0x80070002 when launching pwsh.exe']`

Originally posted by @SaprativRay in https://github.com/microsoft/terminal/issues/4228#issuecomment-657175164

Originally created by @SaprativRay on GitHub (Jul 12, 2020). I have installed Windows PowerShell 7 and in my settings.json file, I have included: ``` { "guid": "{fb0ad4d6-a0de-48b8-8feb-14df8467ad31}", "hidden": false, "name": "Windows PowerShell 7", "commandline": "pwsh.exe" } ``` Now when I am starting this profile, it says: `[error 0x80070002 when launching `pwsh.exe']` _Originally posted by @SaprativRay in https://github.com/microsoft/terminal/issues/4228#issuecomment-657175164_
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 01:58:05 +00:00
Author
Owner

@DHowett commented on GitHub (Jul 12, 2020):

This means that pwsh.exe isn’t on your system PATH. Either give Terminal the full path to pwsh.exe, or add the directory it’s in to the PATH environment variable.

@DHowett commented on GitHub (Jul 12, 2020): This means that pwsh.exe isn’t on your system PATH. Either give Terminal the full path to pwsh.exe, or add the directory it’s in to the PATH environment variable.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9571