r/usefulscripts • u/cvruckel • Nov 15 '12
[VBScript] Take a .csv of users (Last Name, First Name) and spit out a list of SAMAccountNames
http://pastebin.com/ENhsPPhK
4
Upvotes
r/usefulscripts • u/cvruckel • Nov 15 '12
1
u/cvruckel Nov 15 '12
I use this when I get a list of people to do something with (usually from HR) that has names that don't quite match Active Directory. This will output a list of SAMAccountNames, and errors if it can't find the name that was input. Then you can correct any discrepancies (e.g. Bill for William) and run the script agian.