Windows credentials on our instance is erroring with Authentication failed.

CV1
Tera Contributor

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

 

2 REPLIES 2

J Siva
Tera Sage

Hi @CV1 

Are you able to run the AD cmdlets manually from your mid server host using the service account credentials?

Regards 

Siva

Kieran Anson
Kilo Patron

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