kmcnally2022,
Welcome to the forum. ![]()
When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.
Thanks in advance
Your code is actually correct. The OU you specified in your variable $ADPath does not seem to be existing.