The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Power shell execution using large strings as arguments

tmiya
Tera Expert

If I want to run powershell on MID from ServiceNow, the name field of the ECC queue should be What I can do with the form "script.ps1 +argument" is I know. (script.ps1 has been placed in MID in advance)

However, if the argument is too long, the string will be cut off and cannot be executed correctly.
Does anyone know how to pass long arguments to powershell without cutting the string?

The arguments change dynamically, so they are not fixed values. (Acquired from input values ​​such as applications)

1 ACCEPTED SOLUTION

tmiya
Tera Expert
2 REPLIES 2

tmiya
Tera Expert

jamy2
Tera Contributor

How did you solve this?