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
  • Did you check the generated parameter in the Job Queue, does it look okay?

    Did you turn on the Debug mode of the Job Service and checked the Job Service Log for more information then?

    If your PowerShell-command would contain a double-quote like Remove-Item "C:\TestDirectory\TestFile" you would need to write the parameter as

    Value = "Remove-Item ""C:\TestDirectory\TestFile"""

     

Children