Skip to content

Command path needs to support quotes #253

@jzavcer

Description

@jzavcer

Describe the Bug

We are trying to create some schedule tasks where the executable is located in Program Files. Without quotes in the command path it creates the schedule task without issue. But the schedule task does not run because it only sees "c:\Program". If quotes are added then the task scheduler has no problems executing but then it is no longer idempotent.

Expected Behavior

To be able to put quotes in both the command and working directory. And to have the schedule task run properly.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Add a schedule task with any trigger.
  2. Use the full path of pwsh.exe in the command
    3 mock any arguments like -Command { "Hello World" }
  3. Execute.

Environment

  • windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions