
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2021 01:54 AM
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:
So far, all my attempts fail with "Authentication failure with the user ... ":
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?
Solved! Go to Solution.
- Labels:
-
IntegrationHub
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2021 07:14 AM
Can you also post your script? There might be something with how you parse the $cred.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2021 07:14 AM
Can you also post your script? There might be something with how you parse the $cred.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2021 07:43 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2021 10:40 AM
Hi Nicolas,
Can you post your script or how you used the -credential parameter?
THanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2025 07:42 AM
yeah - I need to see that so I can fix mine.