Skip to content

[Bug] Add notes around Start-ADTProcess -ArgumentList parsing differences for 4.1 compared to 4.0 #145

@gregbeck

Description

@gregbeck

Prerequisites

PSAppDeployToolkit version

4.1.0

Describe the bug

When starting a process with Start-ADTProcess if an argument has quotes then the whole argument gets quotes and the internal quotes get escaped.

I am not sure if that is supposed to work but the install I am updating doesn't seem to like it.

Steps to reproduce

Simple example from command line.

  1. Start-ADTProcess -FilePath 'cmd.exe' -ArgumentList @('/option1', '/option2 "thing"')
  2. View command line in task manger
    "C:\Windows\system32\cmd.exe" /option1 "/option2 \"thing\""

Doing the same thing with 4.0.6 the command line is, which is the expected result.
"C:\Windows\system32\cmd.exe" /option1 /option2 "thing"

Environment data

Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions