AutoSys Workload Automation

  • 1.  Is there a way to run a power shell command job in autosys?

    Posted Mar 12, 2018 04:56 PM

    I tried using this as the command line:

    "c:\VERTEX\decrypt - test.ps1" -accepteula

    The job just opened notepad and then hung.



  • 2.  Re: Is there a way to run a power shell command job in autosys?
    Best Answer

    Posted Mar 12, 2018 05:16 PM

    This typically works for us:
    powershell.exe -f <full path of script>.ps1 -<parameters>

    You may also need to adjust your agentparm.txt file regarding quotations for syntax.



  • 3.  Re: Is there a way to run a power shell command job in autosys?

    Posted Mar 12, 2018 06:06 PM

    Thank you so much. I have it working now!



  • 4.  Re: Is there a way to run a power shell command job in autosys?

    Posted Mar 14, 2018 03:20 AM

    If you want to run a plain Powershell command and not a script you can use the following command in autosys:

    powershell -c "<command>"



  • 5.  Re: Is there a way to run a power shell command job in autosys?

    Posted Dec 06, 2018 04:12 PM

    Tried executing the same : powershell.exe -f <full path of script>.ps1 -<parameters> , it dint work.



  • 6.  Re: Is there a way to run a power shell command job in autosys?

    Posted Dec 06, 2018 05:30 PM

    this is what I got to work in our shop

     

    powershell.exe -NonInteractive -command "& '<full path of script>..ps1' 'parameter'"