Powershell script on mid server not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 12:05 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 12:16 AM
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.
Thanks,
Pratik Malviya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 03:38 AM
Hi @Pratik Malviya
Already tested this in the past and tried it again today, but still no luck.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 08:56 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2022 02:06 AM
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.