Here ya go, I should get a star for this LoL
Const olFolderContacts = 10
Dim strDisplayName, strEmail, strDescription, strDistList
Dim objContacts, objOU, objOutlook, objNamespace, objDistList
Set objOutlook = CreateObject("Outlook.Application")
Set objNamespace = objOutlook.GetNamespace("MAPI")
Set colContacts = objNamespace.GetDefaultFolder(olFolderContacts).Items
objDistList = (INPUTBOX("Enter Outlook Dist List Name"))
Set DstLstName = colContacts.Item(objDistList)
If TypeName(DstLstName) = "DistListItem" Then
For j = 1 To DstLstName.MemberCount
strDisplayName = DstLstName.GetMember(j).Name
strEmail = DstLstName.GetMember(j).Address
CreateUser
MailingSetup
Next
Else
WScript.Echo "Name is not a Dist List"
End If
Wscript.Echo "Done"
WScript.Quit
'####################################
'You have to edit this part of the script to fit your situation, this will place the contacts
'in whatever OU you want them to be in.
'#####################################
Function CreateUser()
Set objOU = GetObject("LDAP://ou=<Organizational Unit>,dc=<domain>,dc=<com,net,org, etc..>")
Set objContact = objOU.Create("Contact", strContactName)
objContact.Put "displayName",strDisplayName
objContact.Put "Description", strDescription
objContact.Put "Mail", strEmail
objContact.SetInfo
End Function
Function MailingSetup()
objContact.MailEnable strEmail
objContact.SetInfo
End Function