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

  • 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.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato