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-25-2022 07:08 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2022 11:03 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 09:19 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2022 08:18 AM
There are still some unkowns here. Did you see anything in the logs? Are you able to share your code?