Skip to content

pwsh.exe executable does not work in Windows Task Scheduler #13302

@user8446

Description

@user8446

Using pwsh.exe as the executable in windows task scheduler returns: The system cannot find the file specified. (0x8007002) although pwsh.exe works throughout the system.

Expected bahavior: pwsh.exe works as an executable like powershell.exe does

Name Value


PSVersion 7.0.3
PSEdition Core
GitCommitId 7.0.3
OS Microsoft Windows 10.0.19041
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-AnsweredThe question is answered.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions