Powershell script on mid server not working

KoenHaemels
Tera Contributor

Hi

I'm struggling to get a powershell script run on our midserver using the flow designer.
I've created a very simple script containing "Get-Service" that is created via "MID Server Script Files".
But when i want to run it via Flow designer - Actions i get:

 

 

IPaaSActionProbe | PowerShell script execution failed. Script returned status 1 using account user xxx

 

 

 

The user should normally work, because colleagues did use it for Actions in the past.

Anyone who can assist/help me?

Thanks in advance.

8 REPLIES 8

The term 'testNoCredentialAccessAD' is not recognized as the name of a cmdlet, function, script file, or operable program.

This looks like something is trying to do something the system doesn't recognize. Are you defining 'testNoCredentialAccessAD' as a function in your script before you are calling it?

 

It is beeing applied when i add credType "AD" as an input variable.
If i don't use it, i get:

IPaaSActionProbe | Access denied

But that is strange because i use the same credentials as every other Action. 

tmalo
Tera Contributor

Are you seeing any additional error information while testing in Flow Designer? If not I would also log into the MID server host to look at the .\path\to\agent\logs\agent0log.0 and Windows Event Viewer.

tmalo
Tera Contributor

There are still some unkowns here. Did you see anything in the logs? Are you able to share your code?