Skip to content

about_Run_With_PowerShell page says the script will be run with pwsh.exe, but it really uses powershell.exe #12234

@Jazzman123

Description

@Jazzman123

Type of issue

Other (describe below)

Feedback

The about_Run_With_PowerShell page says the following:

The Run with PowerShell feature starts a Windows PowerShell session that has an execution policy of Bypass, runs the script, and closes the session.
It runs a command that has the following format:
    pwsh.exe -File <FileName> -ExecutionPolicy Bypass

The first page of this is correct: it does start a Windows PowerShell session. But the example command is not correct: it doesn't run pwsh.exe, it runs powershell.exe instead. (I wish it was possible to change the behavior to run pwsh instead, but I don't think this is possible.)

Page URL

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_run_with_powershell?view=powershell-7.5

Content source URL

https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.5/Microsoft.PowerShell.Core/About/about_Run_With_PowerShell.md

Author

@sdwheeler

Platform Id

7c43ace5-2e5f-01f2-0750-7f64e1851c05

Document Id

04fecf7a-f4bc-4552-e01a-814c8abedc67

Metadata

Metadata

Assignees

Labels

area-aboutArea - About_ topicsreview-shiproomWaiting - for Shiproom discussion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions