VBSCRIPT using Excel to Query Active Directory
I've been trying to figure out how to do this for a week now and I'm slowly going nuts. :cryin:
Here's the deal:
I've got an Excel spreadsheet with users' first names in column A and last name in column B. I need to write a VBscript to use this spreadsheet in order to query Active Directory for usernames and output those to column C.
By trade I'm a network admin and I can usually frankenstein VBscripts together to do what I need, but this one is too complicated for me. I've found a script which is fairly close to what I need to do, but it just queries AD then outputs whether or not the user account was found. It doesn't output usernames. I'm just not knowledgeable enough to make the necessary modifications. I've pasted it below.
Query AD for user using first and last name
Any help would be GREATLY appreciated!
|All times are GMT +5.5. The time now is 16:51.|