Mail-Disabling a Group






Mail-Disabling a Group

Mail-disabling a group is exactly like mail-disabling a contact:

    ' This code mail disables a group.
    Option Explicit
    Dim strGroupDN, objGroup
    ' ------ SCRIPT CONFIGURATION ------
    strGroupDN = "<GroupDN>"   ' e.g. cn=MyDL,ou=Groups,dc=mycorp,dc=com
    ' ------ END CONFIGURATION ---------
    Set objGroup = GetObject("LDAP://" & strGroupDN)
    objGroup.MailDisable
    objGroup.SetInfo(  )
    WScript.Echo "Successfully mail-disabled group."

Mail-disabling a group requires Exchange Data Administrator permissions.




 Python   SQL   Java   php   Perl 
 game development   web development   internet   *nix   graphics   hardware 
 telecommunications   C++ 
 Flash   Active Directory   Windows