# User Account creation Automation on-premise active directory script issue

**URL:** <https://forums.powershell.org/t/user-account-creation-automation-on-premise-active-directory-script-issue/18620>\
**Category:** PowerShell Help\
**Created:** [February 18, 2022, 6:35pm UTC](https://forums.powershell.org/t/user-account-creation-automation-on-premise-active-directory-script-issue/18620 "2022-02-18T18:35:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [February 18, 2022, 7:00pm UTC](https://forums.powershell.org/t/user-account-creation-automation-on-premise-active-directory-script-issue/18620/2 "2022-02-18T19:00:24Z")

</div>

RandallHallJr,  
Welcome to the forum. 👋🏽

Before we proceed: An image of your code is not helpful. Please go back, edit your existing post and share your code as plain text formatted as code.  
To do this you use the _preformatted text_ button ( **\</\>** ). Simply place your cursor on an empty line, click the button and paste your code.  
Thanks in advance

> [@Welcome to the new PowerShell Forums](https://forums.powershell.org/t/welcome-to-the-new-powershell-forums/7/6):
>
> How to format code in [PowerShell.org](http://PowerShell.org) forums. [Codeformatting\_1]

Do the same for error messages and console output. Share it as text formatted as code.

---

_[View the full topic](https://forums.powershell.org/t/user-account-creation-automation-on-premise-active-directory-script-issue/18620)._
