Bulk Modifying Mailbox Attributes
Now back to the new hires. Using that as an example, you can easily modify mailbox settings for the
users by using the Set-Mailbox cmdlet. In Figure 4 - 39 we first retrieve all the new hires and set bulk
modify their MaxSendSize and ProhibitSendQuota settings.
Using this technique or pattern you can bulk modify common attributes on Recipient objects in
Exchange Server 2007.
Bulk Reconnect Mailboxes
Mailboxes that were disconnected could be reconnected using the following command. The property to
search for is disconnectdate that will not be Null . Using the Get-MailboxStatistics cmdlet, loop
through each user mailbox checking if its ??™ disconnect date is anything other than null. If it has a time
stamp, reconnect the mailbox to the database it was previously associated with:
Get-MailboxStatistics -GK-HCM | ForEach { $_.Name | Where { $_.DisconnectDate -
NotLike {} } } | ForEach { Connect-Mailbox -Identity $_.DisplayName -Database
$_.DatabaseName}
Chapter 4: Working with User and Group Objects
137
Figure 4-39
There are a number of available scripts from Microsoft on Recipient Management. These are for the most
part single - line Exchange Management Shell commands to assist with bulk management. See
microsoft.com/technet/scriptcenter/scripts/message/exch2007/default.
Pages:
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233