Home Forums Programming Powershell Powershell error - Ok in ISE , fails in Agent job RE: Powershell error - Ok in ISE , fails in Agent job

  • opc.three (7/24/2013)


    You cannot send output to the Out-Host when using a PowerShell step type. Long story, but PowerShell steps in Agent 2008 are not full shell. In Agent 2012 the experience has improved significantly. Instead of using the PowerShell step type, save your code as a ps1 file and execute it using PowerShell.exe within a CmdExec step type.

    thanks for update

    Noticed that my ps script runs, but does produce errors.

    Will work on getting those resolved , then trying again by agent.

    cheers