# AD after create script errors

**URL:** <https://developer.sailpoint.com/discuss/t/ad-after-create-script-errors/18526>\
**Category:** SHF Discussion and Questions\
**Tags:** rules, provisioning, sailpoint-identity-security\
**Created:** [October 3, 2023, 5:11pm UTC](https://developer.sailpoint.com/discuss/t/ad-after-create-script-errors/18526 "2023-10-03T17:11:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![awyss](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/awyss/32/37310_2.png) [@awyss](https://developer.sailpoint.com/discuss/u/awyss)\
**Post date:** [October 3, 2023, 5:11pm UTC](https://developer.sailpoint.com/discuss/t/ad-after-create-script-errors/18526/1 "2023-10-03T17:11:05Z")

</div>

Hey all, I need some assistance please with an after create script for AD.

The IQ service is running as “local system”, and the service account is registered to iqservice and configured in the source.

What we’re trying to do is set the AD password in the script and despite the fact that the service account is in account operators, I’m unable to execute set-adaccountpassword. It’s falling down to the catch statement indicating that the command errored out.

Anyone have any ideas?

---

<div class="post-metadata">

**Author:** ![KevinHarrington](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kevinharrington/32/6776_2.png) [@KevinHarrington](https://developer.sailpoint.com/discuss/u/KevinHarrington)\
**Post date:** [October 3, 2023, 5:52pm UTC](https://developer.sailpoint.com/discuss/t/ad-after-create-script-errors/18526/2 "2023-10-03T17:52:14Z")

</div>

Run the IQ Service as a named user who has access to set passwords. The script is running in the context of the IQ Service, not the service account configured in IDN.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [December 2, 2023, 5:52pm UTC](https://developer.sailpoint.com/discuss/t/ad-after-create-script-errors/18526/3 "2023-12-02T17:52:41Z")

</div>

Closed on December 2, 2023, 5:52pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
