Rule description
Use this rule in a hybrid Exchange environment. The rule queries Active Directory within the defined scope, for each returned user looks up the matching Office 365 user account, then creates a remote mailbox for this user and configures that mailbox for remote routing.
When to use this rule
Use this rule in a hybrid Exchange environment to create remote mailboxes for Active Directory users that already have synced Office 365 user accounts and an Exchange Online license option assigned.
This rule sets the corresponding Exchange on-premises attributes in on-premise Exchange and Active Directory. As a result, users' remote mailboxes are shown in the on-premises Exchange Admin Center.
Rule Settings
Query Section
Setting name | Description |
---|---|
Add Remote Mailboxes Users in this Domain/OU |
This setting defines the search query scope. To improve query performance, limit the scope to specific OU. Important: To test rule configuration, limit the rule scope to an OU that contains test accounts or objects.
|
Query Criteria |
Query criteria are sent with the query and may improve query performance. Tip: For different samples on the criteria builder, see KB20180410-1.
|
More options | |
Filter |
To hide unwanted data based on criteria, not supported by Active Directory query, set the filtering conditions here. Example: filter by the found object Distinguished Name. Tip: For optimal performance, use the Query criteria above to filter objects whenever possible.
|
Properties to Display
|
To display additional properties for each object found by the query, add those properties to the list.
|
Sort by |
Sort result objects list. |
Initialization script |
|
Script |
Usually, rules use query criteria to limit the query search scope. It improves the performance of the executed rule. Due to PowerShell limitations, it is not possible to use calculated expressions in query criteria. That is the point where the initialization script can help. You can initialize a global variable in this setting and then use it in query criteria. Important: To use a variable, declared in the initialization script, in the query scope, it must be global: $global:<variable name>.
Example: Update AD users, created in the last ten days.
{$global:DatePeriod = (Get-Date).AddDays(-10)}
|
Action Section
Setting name | Description |
---|---|
Remote Routing Address |
Specify the format for the remote routing address. |
Primary SMTP Address |
Specify the format for the primary SMTP address. |
Email Address Policy |
|
Enable automatic email address updates by address policy |
Set to 'Yes' to enable automatic email address updates by Exchange Address Policy. if it is set to 'Yes', the primary email address, mail, and other proxy addresses will be generated by the Exchange server itself. The custom-generated values that are configured in Administrator Service will be ignored. For more information, please see this article: Email address policies in Exchange Server | Microsoft Learn. |
Retention and Archival |
|
Enable in-place archive |
Set to Yes to enable in-place archive on the mailbox. |
Output Section
This section defines the output format of this rule.
To get more information about this section, please see the Output section article.
Enforce/Schedule section
This section defines the schedule for how often to run the rule.
To get more information about this section, please see the Enforce/Schedule section article.
Change History
Version | Notes |
---|---|
10.1.3 |
The Initialization Script section has been added. |
9.1.0 |
Domain Controller and Credentials settings have been removed. |
Comments
0 comments
Please sign in to leave a comment.