Error while running powershell via MID Server in Flow Designer
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2023 12:09 AM
I have a requirement where we need to fetch Local Admin Password (LAPs) for servers/workstations from a flow by connecting to AD.
We are using powershell step in an action to achieve this. And the connection alias is using a MID Server.
I am using this powershell script
Get-LapsADPassword $computer -AsPlainText
We have a service account for AD which has permission to fetch LAPs.
Now, when I test the action, I get an error as below:
I dont know what this means. When I checked with AD team, they are saying that may be the servicenow doesnt have permission to run powershell in MID Server. It might need local admin privileges in MID Server.
Any one faced similar issues and how to tackle this if any insight.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2025 05:14 AM
@subhajit1993 - Did you got a resolution for above issue?