Recipe 17.19. Mail-Disabling a ContactProblemYou want to mail-disable a contact. SolutionUsing a graphical user interface
Using a command-line interfaceSee the command-line example for Recipe 17.10. Using VBScript' This code mail disables a contact. ' ------ SCRIPT CONFIGURATION ------ strContactDN = "<ContactDN>" ' e.g., cn=jsmith,ou=Contacts,dc=rallencorp,dc=com ' ------ END CONFIGURATION --------- set objContact = GetObject("LDAP://" & strContactDN) objContact.MailDisable objContact.SetInfo( ) Wscript.Echo "Successfully mail-disabled contact." DiscussionThis recipe shows how to remove the Active Directory Exchange attributes for a previously mail-enabled contact. The solutions are identical to the solutions for mail-disabling users, shown in the Discussion for Recipe 17.10.
See AlsoRecipe 17.10 and MS KB 307350 (XGEN: Using the "Remove Exchange Attributes" Option) |