Script to add a Period after a Middle Inital- Then query AD for User ID

5 pts.
Tags:
Active Directory
Microsoft Excel 2003
SQL
User account management
VBScript
I would like to create a script that parses an excel spreadsheet column with user's full names (I.E. 'John A Smith') and inserts a period (.) after the middle inital character. (I.E. 'John A. Smith')

Once the middle inital period has been inserted, I would like the script to query Active Directory using the User's full name and output the person's User ID (Example: JASMITH) in the coumn next to the existing full name. Does anyone have a script that performs this? The User ID is not always what its expected to be so this is the reason for the AD query, the ID needs to match exactly what is in AD for the user.

I think VBscript would be the best way to accomplish this overall, but as far as inserting the period prior to the AD query, I think possibly SQL would be a good option? What would be the best way to acomplish this?  If anyone has a script that does this or something very similar it would be greatly appreciated.

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following