July 2017
Intermediate to advanced
648 pages
31h 9m
English
Let's take a look at another example. Imagine that, in addition to enabling single-item recovery for all newly-created mailboxes, we also want to disable the ActiveSync protocol for each mailbox. This means that, in addition to calling the Set-Mailbox cmdlet to enable single item recovery, we'll also need to call the Set-CASMailbox cmdlet to disable ActiveSync. Also, mailboxes can be created using both the New-Mailbox and Enable-Mailbox cmdlets. Since we'd like our custom settings to be applied regardless of how the mailbox is created, we can use the following code in our XML file:
<?xml version="1.0" encoding="utf-8" ?> <Configuration version="1.0"> <Feature Name="Mailboxes" Cmdlets="new-mailbox,enable-mailbox"> ...
Read now
Unlock full access