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 (216k 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

Hi all I need to modify the template $remoteRoutingAddressTemplate with the default exchange option automatically update email addresses disable. How i make it?

asked Nov 28, 2022 by Simone.Vailati (430 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.3k points)
0 votes
1 answer

Hello, I'd like setup a new custom command on the Administrator dashboard that would run the following tasks against a disabled user account simultaneously. Enable their account ... the email when using the %unicodePwd% value. Is there a workaround for this?

asked Apr 23, 2020 by sirslimjim (480 points)
3,548 questions
3,239 answers
8,232 comments
547,814 users