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

Pratik Malviya
Tera Guru

Hi @KoenHaemels ,

 

Please check below article, might it will help.

 

Solved: Flow Action designer error - The server is not ope... - ServiceNow Community

 

Please mark helpful if it resolves your query.

Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Thanks,
Pratik Malviya

Hi @Pratik Malviya

Already tested this in the past and tried it again today, but still no luck. 

Check the Connection details of the action, Change it from "Define connection inline" to "Use Connection Alias"

Also check the name as other connectoion could have the same name makeing have the error.

Already started with "Use Connection Alias".
I've also tried copying an existing powershell script that works with the credentials, but gave the script another name. Used completely the same settings and it fails with error:

The term 'testNoCredentialAccessAD' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.