Authentication failure with PowerShell in custom IntegrationHub activity

Nicolas17
Tera Expert

Dear community,

I'm trying to create my first custom action that would run a PowerShell command to create a new OU in Active Directory:

find_real_file.png

 

So far, all my attempts fail with "Authentication failure with the user ... ":

find_real_file.png

 

This account is domain admin and is local admin on the MID Server.

When I run manually the command on the server with the same account, it works. The OU is well created.

When using a provided Microsoft AD activity, it works perfectly fine. I don't understand why I can't just run a basic PowerShell command. Any idea?

1 ACCEPTED SOLUTION

joshvanharn
Kilo Guru

Can you also post your script? There might be something with how you parse the $cred.

View solution in original post

8 REPLIES 8

joshvanharn
Kilo Guru

Can you also post your script? There might be something with how you parse the $cred.

Nicolas17
Tera Expert

Oh man you're right. I forgot to use the -credential with the New-ADOrganizationalUnit. So stupid of me.

Thanks a lot for your help. At least it managed to stop me from becoming mad and to start looking somewhere else!

Hi Nicolas,

 

Can you post your script or how you used the -credential parameter?

 

THanks.

Jeffrey Barton
Tera Contributor

yeah - I need to see that so I can fix mine.