Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
#DefineFunction CreateContact(strMigDC,strMigDNPath,strMigDNS,straccount,forward) ;Path to create the object sADSIPath = StrCat(`LDAP://`,strMigDC,`/OU=contacts,OU=Merger,`,strMigDNPath) ; Create a new contact object sObjectClass = `contact` sUserName = StrCat(`CN=FWD_`,straccount) sObjectPath = dsCreateObj(sAdsipath, sObjectClass, sUserName) ;Sets Other Properties sProperty = "targetAddress" sValue = "forward" dsSetProperty(sObjectPath, sProperty, sValue) ; Now, commit the object to the DS dsSetObj(sObjectPath) #EndFunction
Article ID: W17369
File Created: 2008:04:10:15:08:30
Last Updated: 2008:04:10:15:08:30