http:// thevpn.guru
asked on
Catch-All Email Account In Exchange2003 ?
Hi All I need to create an catch-all email account for our company on Exchange2003 can anyone please guide me into the right direction ?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
i am partial to VBscript
this script should do the trick
'############### Start Script
Dim strFilter, strQuery
Dim rootDSE, domainObject
Dim strname,strlog,stremail,st
Set objConnection = CreateObject("ADODB.Connec
Set objCommand = CreateObject("ADODB.Comman
objConnection.Provider = "ADsDSOOBject"
objConnection.Open "Active Directory Provider"
Set objCommand.ActiveConnectio
Set rootDSE=GetObject("LDAP://
domainContainer = rootDSE.Get("defaultNaming
Set domainObject = GetObject("LDAP://" & domainContainer)
Set objCommand.ActiveConnectio
'######## Enter the path to the text file here ################
strFilePath = "c:\Email addresses.txt"
Set objFSO = CreateObject("Scripting.Fi
On Error Resume Next
Set objFile = objFSO.OpenTextFile(strFil
If Err.Number <> 0 Then
On Error GoTo 0
Set objFSO = Nothing
Wscript.Quit
End If
On Error GoTo 0
strFilter = "(&(objectcategory=user))"
'###### put your domain information below#################
strQuery = "<LDAP://DC=Domain,DC=COM>
& ";displayname,mail,samacco
objCommand.CommandText = strQuery
objCommand.Properties("Pag
objCommand.Properties("Tim
objCommand.Properties("Cac
Set objRecordSet = objCommand.Execute
Do Until objRecordSet.EOF
strname = objRecordSet.Fields("displ
stremail = objRecordSet.Fields("mail"
struid = objRecordSet.Fields("samac
strlog = strname &": "& struid &": "& stremail
objfile.WriteLine strlog
objRecordSet.MoveNext
Loop
'####### end script #######