WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Samples from Users

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Create a Mail Enabled Contact


Author: Rowdy
#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