Powershell Component - Execute Commandline

Hello,

I currently have a problem using the powershell component in one of my processes.

The error is as follows:

The term 'Powershell command' is not recognized as the name of a cmlet, function, script file, or operable program"

"Process task Execute Commandline failed"

The Value inside the component is the same I use in a powershell (which works), or is there any difference between the powershell commandline in powershell and the Value you have to put inside the component?

Or could it be the wrong server function? I use "Update Server".

I couldnt find any useful information about this.

Thank you very much!

Parents Reply
  • Thing is that the PowerShellComponent you are using is running against PowerShell 2.0 and the Get-Content cmdlet doesn't support the -encoding parameter. You need to use a task of the PowershellComponentNet4 to execute commands in .NET 4 based PowerShells (>2.0 and <6).

    Secondly, the single quotes around your command parameter, they are not present in the parameter in OneIM or are they? If so, they need to be removed.

Children