Google Answers Logo
View Question
 
Q: Exchange 2003 and VBScript ( No Answer,   0 Comments )
Question  
Subject: Exchange 2003 and VBScript
Category: Computers > Programming
Asked by: the_g-ga
List Price: $25.00
Posted: 19 Sep 2006 11:38 PDT
Expires: 27 Sep 2006 11:50 PDT
Question ID: 766651
How do I create a Global Address List in Exchange 2003 and then change
the permissions all using VBScript?

Request for Question Clarification by keystroke-ga on 27 Sep 2006 09:04 PDT
Hello the_g,

Are these the types of resources you're looking for?

http://www.msexchange.org/articles/Scripting-This site might be helpful to you
http://www.msexchange.org/articles/Scripting-Exchange-VBScript-ADSI-Part1.html

Let me know if this works for you.

--keystroke-ga

Request for Question Clarification by keystroke-ga on 27 Sep 2006 09:09 PDT
Correction...


This site might be helpful to you
http://www.msexchange.org/articles/Scripting-Exchange-VBScript-ADSI-Part1.html

--keystroke-ga

Clarification of Question by the_g-ga on 27 Sep 2006 11:50 PDT
I have found what I've been looking for.  Took me a long time but have it now.  

Thanks 

Just in case you want to know

' This script was originally published in the Exchange Cookbook,
' (http://www.exchangebookcook.com). Written by Paul Robichaux, 
' Missy Koslosky, and Devin Ganger. Redistributed with permission 
' of the publisher, O'Reilly & Associates.

' This code creates a new top-level address list
' ------ SCRIPT CONFIGURATION ------
 strDCName = "<serverName>"	' e.g. "batman"	
 strContainer= "/CN=All Address Lists,CN=Address Lists
Container,CN=<orgName>,CN=Microsoft
Exchange,CN=Services,CN=Configuration,<domain>"
 strALName = "<newName>" ' e.g. Toledo Employees"
' ------ END CONFIGURATION ---------
what = "LDAP://" & strDCName & strContainer
Set objContainer = GetObject(what)
Set objAddrList = objContainer.Create("AddressBookContainer", "cn=" & strALName)
objAddrList.Put "displayName", strALName
objAddrList.Put "Instancetype", "4"
objAddrList.Put "objectCategory",
"CN=Address-Book-Container,CN=Schema,CN=Configuration,DC=robichaux,DC=net"
objAddrList.Put "PurportedSearch", "(&(mailNickname=*)(objectClass=user))"
objAddrList.SetInfo
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy