Windows credentials on our instance is erroring with Authentication failed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2025 07:41 AM - edited 04-18-2025 07:49 AM
Hello All,
Looking for help with windows credential error and PowerShell
We installed ADv2Spoke parent = PowerShell.
On testing, windows credential returns authentication failed on our instance.
We have a flow action that is called from script include and on testing ,we see following error:
PowerShell script execution failed. Script returned status 1 using account user XXXXXX@yy.com.
- Verified Username and Password are valid.
- Verified there are no firewalls blocking.
- Verified user on the box has all the required permissions
- Our MID and LDAP are up and running
- LDAP is connected and able to browse AD with same credentials.
- checked agent logs.
Please guide how this can be resolved this .
TIA
- Labels:
-
Architect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2025 08:07 AM
Hi @CV1
Are you able to run the AD cmdlets manually from your mid server host using the service account credentials?
Regards
Siva

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2025 08:08 AM
Hi,
As part of your agent log checking, did you enable debugging on the MID server? You can do this by following https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0725846 to understand the full error being thrown. There are multiple powershell functions that can return a status code of one. The debug logs will provide the context of which function is erroring