0 votes

Hi,

How to set up Business Rule to automatically mail-enable new groups?

by (40 points)
0

What version of Exchange do you use?

0

We use Exchange 2007

1 Answer

0 votes
by (215k points)

At the moment, you can automatically mail-enable groups in Exchange 2007 (and Exchange 2010) using a script.

1. Add the 'Run a program or PowerShell script' action to your Business Rule.
2. Select 'PowerShell script' in the Type combo box.
3. Add the following script:

$alias = "%samAccountName%"
$administrativeGroupPath = "Adaxes://CN=<Administrative Group>,CN=Administrative Groups,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=company,DC=com"
$groupPath = "Adaxes://%distinguishedName%";
$group = [Softerra.Adaxes.Adsi.AdmObjectBinder]::BindToObject($groupPath, $NULL, $FALSE, $NULL);
$group.MailEnable($alias, $NULL, $NULL, $administrativeGroupPath);

Replace <Administrative Group>, <company>, and <com> with appropriate values.

Related questions

0 votes
0 answers

I have a set of groups: -General --Specific 1 --Specific 2 --etc Since the specific groups are members of the general group, I am trying to remove direct ... conditions of direct membership, but the rule is never triggered. Has anyone done this before?

asked May 13, 2015 by polley (1.2k points)
0 votes
1 answer

We have two groups I'm trying to manage, Allow Internet Access and Deny Internet Access. I am trying to set up a group so that if one of our admins adds a user to the ... / removing groups not count as updating a user? And if so, what should I use? Thanks.

asked Jul 30, 2014 by DFassett (710 points)
0 votes
1 answer

I am trying to create a business rule to send an email to the manager of the group when a member is added or removed from a rule-based group. I have created the business rule and it works for other groups but not for a rule-based group. Can this be done?

asked Jul 19, 2021 by mark.it.admin (2.1k points)
0 votes
1 answer

EDIT: Actually, it would be better if I could just add the ownerDN to the groups automatically regardless of the initiator! Would that make it easier? Hi All, I have ... for approval for users being added to groups, can this request bypass that? Thanks John.

asked Sep 29, 2015 by bistromath (840 points)
0 votes
1 answer

Hello, A new question : when I create a new contact in Adaxes, I'd like the email address automatically created. How can I do this ? Thanks for your response. Yoann

asked Oct 15, 2012 by yoann.hamon (180 points)
2,800 questions
2,534 answers
6,605 comments
59,693 users