Exchange Server - Mail Enabled contacts

Asked By Kanwa
07-Sep-07 01:16 PM
Hi,
I am new to scripting so your help is really appreciated.
I want to add mail enabled contacts and Iam using the following scrpit:
dsadd contact cn="My name", ou=test, dc=domain, dc=com, -fn My -ln Name
-display "My Name" -email name@hotmail.com

What do I need to add to the script to make the contact as mail enabled?
Thanks in advance.
MailNickname
(1)
Iam
(1)
Vbscript
(1)
Scrpit
(1)
Dsadd
(1)
Com
(1)
  andy webb replied...
07-Sep-07 06:35 PM
it needs a mailNickname at the very least.

http://www.computerperformance.co.uk/vbscript/vbscript_contact_create.htm
Create New Account
help
Set legacyDN value Exchange Server Does anyone know a vbscript that will set the legacyDN value for an ou using the mailNickname as the last cn name. Example / o = Organization, / ou = First Administrative Group, / cn = Recipients, / cn = <mailNickname> I tried this script, which runs without error, but doesn't set any properties: Option Execute objRecordSet.MoveFirst Do Until objRecordSet.EOF strContactPath = objRecordSet.Fields("ADsPath").Value strNick = objRecordSet.Fields("mailNickname").value strMailbox = " / o = Organization / ou = First Administrative Group / cn = Recipients / cn = " & strNick Set objContact = GetObject name legacyExchangeDN in the form of " / o = Organization / ou = First Administrative Group / cn = Recipients / cn = %'mailnickname'%" But just for heads up ADmodify and any other script will fail to do these change on any OU as OUs do not have mailnickname on them. Yes, you can change it for groups and users off course! - - Milind Naphade declared after I posted this originally. keywords: Set, legacyDN, value description: Does anyone know a vbscript that will set the legacyDN value for an ou using the mailNickname as the last cn name. Example / o = Organization, / ou = First Adm
Hi Plz Help Me Exchange Server Hi Users, Dear All iam new to this group i want to know hoe to install the exchange server and how to create the users iam confused if u having any materials plz forward me or send any links which is helpful for me Thanks & Regards, Raja S. Exchange Setup Discussions Plz (1) Graphics (1) Iam (1) www.msexchange.org and www.microsoft.com / exchange are two places to go to see things step by step. keywords: Hi, Plz, Help, Me description: Hi Users, Dear All iam new to this group i want to know hoe to install the exchange server and how to create the users iam confused if u having any mat
Exchange 5.5 - modifying smtp addresses via VBscript Exchange Server Hi, I need to write a VBscript to enumerate all the users on an Exchange 5.5 machine and remove / change the fix / import if at all possible. Thanks in advance for any info. Exchange Development Discussions VBscript (1) GetAddressEntry (1) LDAP (1) MAPI (1) DAPI (1) API (1) MS (1) AD (1 s an old old API, and I don't know if it'll work with VBscript - - you may well have to use a real language (C++, that sort of thing). - - dan keywords: Exchange, 5.5, -, modifying, smtp, addresses, via, VBscript description: Hi, I need to write a VBscript to enumerate all the users on an Exchange 5.5 machine and remove / change the