Keep in mind
that this can also be configured at the Hub Transport, Receive Connector, and Organizational levels. In
the following example, you can restrict the number of Recipients per message to 450 for the ExchUser
mailbox by running the following command:
Set-Mailbox -Identity ???ExchUser??? -RecipientLimits 450
Part I: PowerShell for Exchange Fundamentals
122
Most PowerShell cmdlets allow you to pipe the output of one noun to another noun in order to view or
modify related objects. In the following example, you can set the mailbox limit on all mailboxes that
reside in a specific mailbox database on a server by running the command:
Get-MailboxDatabase ???Mailbox Database??? | Get-Mailbox | Set-Mailbox -
ProhibitSendQuota 500MB
This command retrieves all the mailboxes that reside in the mailbox database and sets their
ProhibitSendQuota value to 500MB.
You can use the Exchange Management Shell Move-Mailbox cmdlet to move a user ??™ s mailbox to a
different database or server. This can also be accomplished for multiple user mailboxes simultaneously.
For example, you can use the Get-Mailbox cmdlet to retrieve a list of user mailboxes that match a
certain CustomAttribute and use the Move-Mailbox cmdlet to get them moved:
Get-Mailbox -Filter { CustomAttribute3 -eq ???pilots??™ } | Move-Mailbox -
TargetDatabase ???Ex7B\Mailbox Database???
Unlike most of the earlier commands, when adding an email address to a user mailbox object it is not
possible to accomplish that with a single command.
Pages:
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215