Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command path needs to support quotes #253

Open
jzavcer opened this issue May 6, 2024 · 0 comments
Open

Command path needs to support quotes #253

jzavcer opened this issue May 6, 2024 · 0 comments

Comments

@jzavcer
Copy link

jzavcer commented May 6, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants