Using PowerShell for Configuration Tasks

,

For administrators who prefer to do all their configuration tasks through PowerShell, Lync Server 2010 supports the capability to read and modify the archive policy and archive configuration through cmdlets:

Get-CsArchivingConfiguration
Identity                   :Global
EnableArchiving            :ImAndWebConf
EnablePurging        :True
PurgeExportedArchivesOnly:False
BlockOnArchiveFailure      :True
KeepArchivingDataForDays   :14

These cmdlets can be modified through Set-CsArchivingConfiguration. For example, the following cmdlet updates the archive retention period to 15 days.

Set-CsArchivingConfiguration –Identity Global –KeepArchivingDataForDays 15

For the policy, use Get-CsArchivingPolicy:

Identity                   :Global
Description          :
ArchiveInternal            :True
ArchiveExternal            :True

This cmdlet returns the same set of information for each policy that has been defined.

To modify a policy, use Set-CsArchivingPolicy as shown in the following example:

Set-CsArchivingPolicy –Identity Global –ArchiveExternal:$False


Note

The use of the $ indicates that the ArchiveExternal is looking for a Boolean value. As such, using –ArchiveExternal:0 would have the same effect.


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset