Exchange.2k.Group.SetProperty
Top  Previous  Next


Mail enables or disables group (distribution list)

Exchange 2000 or 2003 Mail enabled group = Exchange 5.5 Distribution list. Use AD.Group.Create to create groups.

Category
Exchange 2000

Script section
All

Requirements
·Exchange 2000 server  
·Exchange 2000 system manager  

Exchange.2k.Group.SetProperty CommonName, PropertyName, Value

CommonName
Full AD path to group  
 
PropertyName
Name of property to set, see table 1 below  
 
Put a "$" character in front of the property name to bypass the syntax checker in order to modify AD properties unknown by SetupBatcher. Notice: only text and binary values are supported at this time.  
 
Value
New value for property  
 
Table 1 - PropertyName parameter
PropertyName
Comment
MailEnable
Flag, value = "Yes" or "No"
SMTPEmail
SMTP E-mail address
DisplayName
Group display name
msExchHidefromAddressLists
Flag, value = "Yes" or "No"


Examples
Mail enable the group "MyGroup" in the "MyOU" OU of domain d09.acme.com.

Exchange.2k.Group.SetProperty dc=com/dc=acme/dc=D09/ou=MyOU/cn=MyGroup, MailEnable, Yes
Exchange.2k.Group.SetProperty dc=com/dc=acme/dc=D09/ou=MyOU/cn=MyGroup, SMTPEmail, MyGroup@d09.acme.com

Set the string property "test"

Exchange.2k.Group.SetProperty dc=com/dc=acme/dc=D09/ou=MyOU/cn=MyGroup, $test, MyValue