3 Replies Latest reply on Dec 31, 2018 1:02 AM by Ilyas Shaikh

    How to pass variables to embedded script for windows?

    Thirulok Thilagar
      Share:|

      Hello

       

      I want to push parameters to an embedded script (OS job). The parameters get passed when job gets ordered.

      I am unable to make it work. This is what i have so far:

       

      for ex:  if I want to run this as "sc query %%name" as windows command, the %%name value gets eval'd  and i get a valid output.

      But if i use embedded script, the %%name is not evaluated to the value and is called as is. How do i pass parameters to embedded script.

       

      output:

       

      I want to use embedded script as its not a single command and i dont want to save the script in each server its run against

       

      Thanks