I'm having an idea but I'm having a hard time figuring out how to make it a reality.

Basically, I want to create a script that will prompt for a user name. The supervising user will type in the user's username and then the script will query AD for two characters from one attribute of that user and six characters from another attribute of the same user, then reset the password of the user to the result of that query.

Is this possible or am I dreaming too much?

Thanks in advance for any and all ideas.