Skip to Main Content
Active Directory, 3rd Edition
book

Active Directory, 3rd Edition

by Joe Richards, Robbie Allen, Alistair G. Lowe-Norris
January 2006
Beginner content levelBeginner
832 pages
27h 52m
English
O'Reilly Media, Inc.
Content preview from Active Directory, 3rd Edition

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."

Tip

Mail-disabling a group requires Exchange Data Administrator permissions.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Active Directory, 4th Edition

Active Directory, 4th Edition

Brian Desmond, Joe Richards, Robbie Allen, Alistair G. Lowe-Norris
Active Directory, Second Edition

Active Directory, Second Edition

Robbie Allen, Alistair G. Lowe-Norris

Publisher Resources

ISBN: 0596101732Supplemental ContentErrata Page